<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>档案管理系统</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">

    <link rel="stylesheet" href="/static/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="/static/dist/css/font-awesome.min.css">
    <link rel="stylesheet" href="/static/dist/css/ionicons.min.css">
    <link rel="stylesheet" href="/static/dist/css/AdminLTE.min.css">
    <link rel="stylesheet" href="/static/dist/css/skins/all-skins.min.css">
    <link rel="stylesheet" href="/static/css/bootstrap-treeview.css">

    <link rel="stylesheet" href="/static/css/bootstrap-table.min.css">
    <link rel="stylesheet" href="/static/layer/theme/default/layer.css">
    <link rel="stylesheet" href="/static/css/fileinput.min.css">
    <link rel="stylesheet" href="/static/css/viewer.min.css">

    <style type="text/css">
        .bootstrap-table{
            width: 103.2%;
            margin-left: -25px;
        }
        li{
            text-overflow: ellipsis!important;
            white-space:nowrap!important;
            overflow:hidden!important;
        }
        .nav-tabs-custom{
            box-shadow:0 0px 0px rgba(255, 255, 255, 1)!important;
        }
        .table>tbody>tr>td{
            border-left: 0px;
            border-right: 0px;
            border-bottom: 1px solid #e5e9ee;
        }
        /*.table{border: 1px solid #e5e9ee; }*/

        .table thead{
            line-height:17px;
            border: 1px solid #e5e9ee;
            background-color: #F9F9F9;
            color: #777777;
            font-family: PingFang SC;
        }
        .czBtn{
            padding-left: 10px;
            padding-right: 10px;
            opacity:1;
            border-radius:4px;
        }
        .left{
            margin-top: 20px;
            height: 780px;
            border:1px solid rgba(218,220,224,1);
            opacity:1;
            border-radius:8px;
        }
        html {
            /*overflow: hidden;*/
        }
    </style>
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="/static/plugins/ie9/html5shiv.min.js"></script>
    <script src="/static/plugins/ie9/respond.min.js"></script>
    <![endif]-->
</head>
<body class="hold-transition skin-blue" style="font-size: medium">

<div class="content row" id="yhgl">
    <!-- /.modal -->
    <div class="modal" id="jydaDiv" data-backdrop="static">
        <div id="tree2">
            <img id="tree2Img" dataUrl="http://211.159.186.65:33333/api/fj/downloadFj?type=1&fileName=1590982068983.jpg">
        </div>
        <div class="modal-dialog" style="width: 1100px;height: 600px">
            <!--<span class="btn btn-primary" data-original=""></span>-->
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">档案编辑</h4>
                </div>
                <div class="modal-body row">
                    <div class="col-xs-5" style="overflow:auto;height: 600px">
                        <p3>材料信息</p3>
                        <div id="tree"></div>
                    </div>
                    <div class="nav-tabs-custom col-xs-7">
                        <div>
                            <div class="row">
                                <div class="col-xs-12">
                                    <ul class="nav nav-tabs pull-left">
                                        <li style="float: left" class="active"><a href="#daxx" data-toggle="tab">档案信息</a></li>
                                        <li style="float: left"><a href="#ylclxx" data-toggle="tab">已录材料信息</a></li>
                                    </ul>
                                </div>
                            </div>
                            <div class="tab-content no-padding">
                                <div class="tab-pane active" id="daxx" style="position: relative;overflow: auto;height: 1000px">
                                    <div>
                                        <div class="row col-xs-12">
                                            <form id="gdxxForm">
                                                <div class="nav-tabs-custom">
                                                    <!-- Tabs within a box -->
                                                    <ul class="nav nav-tabs pull-right">
                                                        <!--<li class="active"><a href="#revenue-chart" data-toggle="tab">Area</a></li>-->
                                                        <!--<li><a href="#sales-chart" data-toggle="tab">Donut</a></li>-->
                                                        <li class="pull-left header" style="color: #00a7d0"><i class="fa fa-inbox"></i> 基本信息</li>
                                                    </ul>
                                                    <div class="tab-content no-padding">
                                                        <!-- Morris chart - Sales -->
                                                        <div class="chart tab-pane active" style="position: relative">
                                                            <div class="row">
                                                                <div class="form-group col-xs-6">
                                                                    <label>档案类型</label>
                                                                    <div>
                                                                        <div class="input-group">
                                                                            <input name="typeName" type="text" class="form-control input-sm" v-model="gdxx.typeName" readonly>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="form-group col-xs-6">
                                                                    <label>档案编号</label>
                                                                    <div class="input-group">
                                                                        <input name="dabh" v-model="gdxx.dabh" type="text" class="form-control input-sm" @change="pd">
                                                                    </div>
                                                                </div>
                                                                <div class="form-group col-xs-6">
                                                                    <label>年份</label>
                                                                    <input v-model="gdxx.year" name="year" type="text" class="form-control input-sm" >
                                                                </div>
                                                                <div class="form-group col-xs-6">
                                                                    <label>项目名称</label>
                                                                    <input v-model="gdxx.xmmc" name="xmmc" type="text" class="form-control input-sm" >
                                                                </div>
                                                                <div class="form-group col-xs-6">
                                                                    <label>顺序号</label>
                                                                    <input v-model="gdxx.sxh" name="lb" type="text" class="form-control input-sm" >
                                                                </div>
                                                                <div class="form-group col-xs-6">
                                                                    <label>大厅受理编号</label>
                                                                    <input v-model="gdxx.dtslbh" name="dtslbh" type="text" class="form-control input-sm" >
                                                                </div>
                                                                <div class="form-group col-xs-6">
                                                                    <label>原盒号</label>
                                                                    <input v-model="gdxx.yhh" name="yhh" type="text" class="form-control input-sm" >
                                                                </div>
                                                                <div class="form-group col-xs-6">
                                                                    <label>页数</label>
                                                                    <input v-model="gdxx.ys" name="ys" type="text" class="form-control input-sm" >
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <!--<div class="chart tab-pane" id="sales-chart" style="position: relative; height: 300px;"></div>-->
                                                    </div>
                                                </div>
                                                <div class="nav-tabs-custom">
                                                    <!-- Tabs within a box -->
                                                    <ul class="nav nav-tabs pull-right">
                                                        <!--<li class="active"><a href="#revenue-chart" data-toggle="tab">Area</a></li>-->
                                                        <!--<li><a href="#sales-chart" data-toggle="tab">Donut</a></li>-->
                                                        <li class="pull-left header" style="color: #00a7d0"><i class="fa fa-inbox"></i> 建设信息</li>
                                                    </ul>
                                                    <div class="tab-content no-padding">
                                                        <!-- Morris chart - Sales -->
                                                        <div class="chart tab-pane active" style="position: relative">
                                                            <div class="row">
                                                                <div class="form-group col-xs-6">
                                                                    <label>建设单位</label>
                                                                    <input v-model="gdxx.jsdw" name="jsdw" type="text" class="form-control input-sm" >
                                                                </div>
                                                                <div class="form-group col-xs-6">
                                                                    <label>建设位置</label>
                                                                    <input v-model="gdxx.jswz" name="jswz" type="text" class="form-control input-sm" >
                                                                </div>
                                                                <div class="form-group col-xs-6">
                                                                    <label>建设项目选址意见书时间</label>
                                                                    <input v-model="gdxx.jsxmxzyjssj" name="jswz" type="text" class="form-control input-sm" >
                                                                </div>
                                                                <div class="form-group col-xs-6">
                                                                    <label>建设用地规划许可证时间</label>
                                                                    <input v-model="gdxx.jsydghxkzsj" name="jsydghxkzsj" type="text" class="form-control input-sm" >
                                                                </div>
                                                                <div class="form-group col-xs-6">
                                                                    <label>建设工程竣工规划验收合格证时间</label>
                                                                    <input v-model="gdxx.jsgcjgghyshgsj" name="jsgcjgghyshgsj" type="text" class="form-control input-sm" >
                                                                </div>
                                                                <div class="form-group col-xs-6">
                                                                    <label>建设工程施工许可证时间</label>
                                                                    <input v-model="gdxx.jsgcsgxkzsj" name="jsgcsgxkzsj" type="text" class="form-control input-sm" >
                                                                </div>
                                                                <div class="form-group col-xs-6">
                                                                    <label>建设工程施工许可证编号</label>
                                                                    <input v-model="gdxx.jsgcsgxkzbh" name="jsgcsgxkzbh" type="text" class="form-control input-sm" >
                                                                </div>
                                                                <div class="form-group col-xs-6">
                                                                    <label >建设工程规划许可证时间</label>
                                                                    <input v-model="gdxx.jsgcghxkzsj" name="jsgcghxkzsj" type="text" class="form-control input-sm" >
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <!--<div class="chart tab-pane" id="sales-chart" style="position: relative; height: 300px;"></div>-->
                                                    </div>
                                                </div>
                                                <div class="nav-tabs-custom">
                                                    <!-- Tabs within a box -->
                                                    <ul class="nav nav-tabs pull-right">
                                                        <!--<li class="active"><a href="#revenue-chart" data-toggle="tab">Area</a></li>-->
                                                        <!--<li><a href="#sales-chart" data-toggle="tab">Donut</a></li>-->
                                                        <li class="pull-left header" style="color: #00a7d0"><i class="fa fa-inbox"></i> 工程信息</li>
                                                    </ul>
                                                    <div class="tab-content no-padding">
                                                        <!-- Morris chart - Sales -->
                                                        <div class="chart tab-pane active" style="position: relative">
                                                            <div class="row">
                                                                <div class="form-group col-xs-6">
                                                                    <label >工程项目名称</label>
                                                                    <input v-model="gdxx.gcxmmc" name="gcxmmc" type="text" class="form-control input-sm" >
                                                                </div>
                                                                <div class="form-group col-xs-6">
                                                                    <label>工程建设规模</label>
                                                                    <input v-model="gdxx.gcjsgm" name="gcjsgm" type="text" class="form-control input-sm" >
                                                                </div>
                                                                <div class="form-group col-xs-6">
                                                                    <label>工程竣工项目名称</label>
                                                                    <input v-model="gdxx.gcjgxmmc" name="gcjgxmmc" type="text" class="form-control input-sm" >
                                                                </div>
                                                                <div class="form-group col-xs-6">
                                                                    <label>工程竣工建设规模</label>
                                                                    <input v-model="gdxx.gcjgjsgm" name="gcjgjsgm" type="text" class="form-control input-sm" >
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <!--<div class="chart tab-pane" id="sales-chart" style="position: relative; height: 300px;"></div>-->
                                                    </div>
                                                </div>
                                                <div class="nav-tabs-custom">
                                                    <!-- Tabs within a box -->
                                                    <ul class="nav nav-tabs pull-right">
                                                        <!--<li class="active"><a href="#revenue-chart" data-toggle="tab">Area</a></li>-->
                                                        <!--<li><a href="#sales-chart" data-toggle="tab">Donut</a></li>-->
                                                        <li class="pull-left header" style="color: #00a7d0"><i class="fa fa-inbox"></i> 规划信息</li>
                                                    </ul>
                                                    <div class="tab-content no-padding">
                                                        <!-- Morris chart - Sales -->
                                                        <div class="chart tab-pane active" style="position: relative">
                                                            <div class="row">
                                                                <div class="form-group col-xs-6">
                                                                    <label >规划项目名称</label>
                                                                    <input v-model="gdxx.ghxmmc" name="ghxmmc" type="text" class="form-control input-sm" >
                                                                </div>
                                                                <div class="form-group col-xs-6">
                                                                    <label >规划用地面积</label>
                                                                    <input v-model="gdxx.ghydmj" name="ghydmj" type="text" class="form-control input-sm" >
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <!--<div class="chart tab-pane" id="sales-chart" style="position: relative; height: 300px;"></div>-->
                                                    </div>
                                                </div>
                                                <div class="nav-tabs-custom">
                                                    <!-- Tabs within a box -->
                                                    <ul class="nav nav-tabs pull-right">
                                                        <!--<li class="active"><a href="#revenue-chart" data-toggle="tab">Area</a></li>-->
                                                        <!--<li><a href="#sales-chart" data-toggle="tab">Donut</a></li>-->
                                                        <li class="pull-left header" style="color: #00a7d0"><i class="fa fa-inbox"></i> 选址信息</li>
                                                    </ul>
                                                    <div class="tab-content no-padding">
                                                        <!-- Morris chart - Sales -->
                                                        <div class="chart tab-pane active" style="position: relative">
                                                            <div class="row">
                                                                <div class="form-group col-xs-6">
                                                                    <label>选址项目名称</label>
                                                                    <input v-model="gdxx.xzxmmc" name="xzxmmc" type="text" class="form-control input-sm" >
                                                                </div>
                                                                <div class="form-group col-xs-6">
                                                                    <label>选址用地面积</label>
                                                                    <input v-model="gdxx.xzydmj" name="xzydmj" type="text" class="form-control input-sm" >
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <!--<div class="chart tab-pane" id="sales-chart" style="position: relative; height: 300px;"></div>-->
                                                    </div>
                                                </div>
                                                <div class="nav-tabs-custom">
                                                    <!-- Tabs within a box -->
                                                    <ul class="nav nav-tabs pull-right">
                                                        <!--<li class="active"><a href="#revenue-chart" data-toggle="tab">Area</a></li>-->
                                                        <!--<li><a href="#sales-chart" data-toggle="tab">Donut</a></li>-->
                                                        <li class="pull-left header" style="color: #00a7d0"><i class="fa fa-inbox"></i> 施工信息</li>
                                                    </ul>
                                                    <div class="tab-content no-padding">
                                                        <!-- Morris chart - Sales -->
                                                        <div class="chart tab-pane active" style="position: relative">
                                                            <div class="row">
                                                                <div class="form-group col-xs-6">
                                                                    <label>施工工程名称</label>
                                                                    <textarea v-model="gdxx.sggcmc" name="sggcmc" type="text" class="form-control input-sm" ></textarea>
                                                                </div>
                                                                <div class="form-group col-xs-6">
                                                                    <label>施工建设规模</label>
                                                                    <input v-model="gdxx.sgjsgm" name="sgjsgm" type="text" class="form-control input-sm" >
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <!--<div class="chart tab-pane" id="sales-chart" style="position: relative; height: 300px;"></div>-->
                                                    </div>
                                                </div>
                                                <div class="nav-tabs-custom">
                                                    <!-- Tabs within a box -->
                                                    <ul class="nav nav-tabs pull-right">
                                                        <!--<li class="active"><a href="#revenue-chart" data-toggle="tab">Area</a></li>-->
                                                        <!--<li><a href="#sales-chart" data-toggle="tab">Donut</a></li>-->
                                                        <li class="pull-left header" style="color: #00a7d0"><i class="fa fa-inbox"></i> 其他信息</li>
                                                    </ul>
                                                    <div class="tab-content no-padding">
                                                        <!-- Morris chart - Sales -->
                                                        <div class="chart tab-pane active" style="position: relative">
                                                            <div class="row">
                                                                <div class="form-group col-xs-6">
                                                                    <label>项目通过时间</label>
                                                                    <input v-model="gdxx.xmfatgsj" name="xmfatgsj" type="text" class="form-control input-sm" >
                                                                </div>
                                                                <div class="form-group col-xs-6">
                                                                    <label>档案存储位置</label>
                                                                    <input v-model="gdxx.daccwz" name="daccwz" type="text" class="form-control input-sm" >
                                                                </div>
                                                                <div class="form-group col-xs-6">
                                                                    <label>超链接</label>
                                                                    <input v-model="gdxx.clj" name="clj" type="text" class="form-control input-sm" >
                                                                </div>
                                                                <div class="form-group col-xs-6">
                                                                    <label>著录员</label>
                                                                    <input v-model="gdxx.zly" name="zly" type="text" class="form-control input-sm" >
                                                                </div>
                                                                <div class="form-group col-xs-6">
                                                                    <label>著录时间</label>
                                                                    <input v-model="gdxx.zlsj" name="zlsj" type="text" class="form-control input-sm" >
                                                                </div>
                                                                <div class="form-group col-xs-6">
                                                                    <label>其他</label>
                                                                    <input v-model="gdxx.qt" name="qt" type="text" class="form-control input-sm" >
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <!--<div class="chart tab-pane" id="sales-chart" style="position: relative; height: 300px;"></div>-->
                                                    </div>
                                                </div>
                                                <div class="nav-tabs-custom">
                                                    <div class="tab-content no-padding">
                                                        <!-- Morris chart - Sales -->
                                                        <div class="chart tab-pane active" style="position: relative">
                                                            <div class="row">
                                                                <div class="form-group col-xs-12">
                                                                    <label>备注</label>
                                                                    <textarea v-model="gdxx.bz" name="bz" type="text" class="form-control input-sm" ></textarea>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <!--<div class="chart tab-pane" id="sales-chart" style="position: relative; height: 300px;"></div>-->
                                                    </div>
                                                </div>
                                            </form>
                                        </div>
                                    </div>
                                </div>
                                <div class="tab-pane" id="ylclxx" style="position: relative; height: 500px;overflow: auto">
                                    <table class="table table-bordered table-hover text-center" id="daTable">

                                    </table>
                                    <p>总共有{{length}}条数据</p>
                                    <div class="text-center">
                                        <button @click="tj" type="button" class="btn btn-primary">添加</button>
                                        <button type="button" class="btn btn-primary" data-dismiss="modal" @click="scFiles">上传文件夹</button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <div class="text-center">
                        <button type="button" class="btn btn-danger" data-dismiss="modal" @click="deleteDa">删除</button>
                        <button @click="updateDa" type="button" class="btn btn-primary">更新</button>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="modal" id="jydawsDiv" data-backdrop="static" >
        <div id="tree3">
            <img id="tree3Img" dataUrl="http://211.159.186.65:33333/api/fj/downloadFj?type=1&fileName=1590982068983.jpg">
        </div>
        <div class="modal-dialog" style="width: 1100px">
            <!--<span class="btn btn-primary" data-original=""></span>-->
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">档案查看</h4>
                </div>
                <div class="modal-body row">
                    <div class="col-xs-5" style="overflow:auto;height: 500px">
                        <p3>材料信息</p3>
                        <div id="tree5"></div>
                    </div>
                    <div class="nav-tabs-custom col-xs-7">
                        <div>
                            <div class="row">
                                <div class="col-xs-12">
                                    <ul class="nav nav-tabs pull-left">
                                        <li style="float: left" class="active"><a href="#wsxx" data-toggle="tab">档案信息</a></li>
                                        <li style="float: left"><a href="#ylwsclxx" data-toggle="tab">已录材料信息</a></li>
                                    </ul>
                                </div>
                            </div>
                            <div class="tab-content no-padding">
                                <div class="tab-pane active" id="wsxx" style="position: relative;overflow: auto;height: 500px">
                                    <div>
                                        <div class="row col-xs-12">
                                            <form id="wsxxForm">
                                                <div class="nav-tabs-custom">
                                                    <!-- Tabs within a box -->
                                                    <ul class="nav nav-tabs pull-right">
                                                        <!--<li class="active"><a href="#revenue-chart" data-toggle="tab">Area</a></li>-->
                                                        <!--<li><a href="#sales-chart" data-toggle="tab">Donut</a></li>-->
                                                        <li class="pull-left header" style="color: #00a7d0"><i class="fa fa-inbox"></i> 基本信息</li>
                                                    </ul>
                                                    <div class="tab-content no-padding">
                                                        <!-- Morris chart - Sales -->
                                                        <div class="chart tab-pane active" style="position: relative">
                                                            <div class="row">
                                                                <div class="form-group col-xs-6">
                                                                    <label>档案类型</label>
                                                                    <input name="typeName" type="text" class="form-control input-sm" v-model="wsxx.typeName" readonly>
                                                                </div>
                                                                <div class="form-group col-xs-6">
                                                                    <label>案卷题名</label>
                                                                    <input  v-model="wsxx.wjmc" name="wjmc" type="text"
                                                                            class="form-control input-sm">
                                                                </div>
                                                                <div class="form-group col-xs-6">
                                                                    <label>档案编号</label>
                                                                    <input  name="dabh" v-model="wsxx.dabh" type="text"
                                                                            class="form-control input-sm" @change="pd2">
                                                                </div>

                                                                <div class="form-group col-xs-6">
                                                                    <label>单位名称</label>
                                                                    <input  v-model="wsxx.dwmc" name="dwmc" type="text"
                                                                            class="form-control input-sm">
                                                                </div>
                                                                <div class="form-group col-xs-6">
                                                                    <label>年份</label>
                                                                    <input  v-model="wsxx.nf" name="nf" type="text"
                                                                            class="form-control input-sm">
                                                                </div>
                                                                <div class="form-group col-xs-6">
                                                                    <label>时间</label>
                                                                    <input  v-model="wsxx.sj" name="sj" type="text"
                                                                            class="form-control input-sm">
                                                                </div>
                                                                <div class="form-group col-xs-6">
                                                                    <label>页号</label>
                                                                    <input  v-model="wsxx.yh" name="yh" type="text"
                                                                            class="form-control input-sm">
                                                                </div>
                                                                <div class="form-group col-xs-6">
                                                                    <label>页数</label>
                                                                    <input  v-model="wsxx.ys" name="ys" type="text"
                                                                            class="form-control input-sm">
                                                                </div>
                                                                <div class="form-group col-xs-6">
                                                                    <label>总盒号</label>
                                                                    <input  v-model="wsxx.zhh" name="zhh" type="text"
                                                                            class="form-control input-sm">
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <!--<div class="chart tab-pane" id="sales-chart" style="position: relative; height: 300px;"></div>-->
                                                    </div>
                                                </div>
                                                <div class="nav-tabs-custom">
                                                    <!-- Tabs within a box -->
                                                    <ul class="nav nav-tabs pull-right">
                                                        <!--<li class="active"><a href="#revenue-chart" data-toggle="tab">Area</a></li>-->
                                                        <!--<li><a href="#sales-chart" data-toggle="tab">Donut</a></li>-->
                                                        <li class="pull-left header" style="color: #00a7d0"><i class="fa fa-inbox"></i> 备注</li>
                                                    </ul>
                                                    <div class="tab-content no-padding">
                                                        <!-- Morris chart - Sales -->
                                                        <div class="chart tab-pane active" style="position: relative">
                                                            <div class="row">
                                                                <div class="form-group col-xs-12">
                                                                    <label>备注</label>
                                                                    <textarea  v-model="wsxx.bz" name="qzh" type="text"
                                                                               class="form-control input-sm">
                                                    </textarea>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <!--<div class="chart tab-pane" id="sales-chart" style="position: relative; height: 300px;"></div>-->
                                                    </div>
                                                </div>


                                            </form>
                                        </div>
                                    </div>
                                </div>
                                <div class="tab-pane" id="ylwsclxx" style="position: relative; height: 500px;overflow: auto">
                                    <table class="table table-bordered table-hover text-center" id="daTable2">

                                    </table>
                                    <p>总共有{{length2}}条数据</p>
                                    <div class="text-center">
                                        <button @click="tj" type="button" class="btn btn-primary">添加</button>
                                        <button type="button" class="btn btn-primary" data-dismiss="modal" @click="scFiles">上传文件夹</button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <div class="text-center">
                        <button type="button" class="btn btn-danger" data-dismiss="modal" @click="deleteWs">删除</button>
                        <button @click="updateWs" type="button" class="btn btn-primary">更新</button>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="modal" id="tjclDiv" data-backdrop="static">
        <div class="modal-dialog" style="width: 1100px">
            <!--<span class="btn btn-primary" data-original=""></span>-->
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close" @click="close">
                        <span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">添加材料</h4>
                </div>
                <div class="modal-body row">
                    <form id="tjclForm">
                        <div class="form-group col-xs-12">
                            <label>*文件序号</label>
                            <textarea name="wjxh" v-model="clxx.wjxh" type="text" class="form-control input-sm"></textarea>
                        </div>
                        <div class="form-group col-xs-12">
                            <label>*材料名称</label>
                            <input name="clmc" v-model="clxx.clmc" type="text" class="form-control input-sm">
                        </div>
                        <div class="form-group col-xs-12">
                            <label>份数</label>
                            <input name="fs" v-model="clxx.fs" type="text" class="form-control input-sm">
                        </div>
                        <div class="form-group col-xs-12">
                            <label>起始页码</label>
                            <input name="qsym" v-model="clxx.qsym" type="text" class="form-control input-sm">
                        </div>
                        <div class="form-group col-xs-12">
                            <label>终止页码</label>
                            <input name="zzym" v-model="clxx.zzym" type="text" class="form-control input-sm">
                        </div>
                        <div class="form-group col-xs-12">
                            <label>页数</label>
                            <input name="ys" v-model="clxx.ys" type="text" class="form-control input-sm">
                        </div>
                        <div class="form-group col-xs-12">
                            <label>年份</label>
                            <input name="year" v-model="clxx.year" type="text" class="form-control input-sm">
                        </div>
                        <div class="form-group col-xs-12">
                            <label>案卷号/文号/许可证号</label>
                            <input name="otherZh" v-model="clxx.otherZh" type="text" class="form-control input-sm">
                        </div>
                        <div class="form-group col-xs-12">
                            <label>受理时间</label>
                            <input name="slsj" v-model="clxx.slsj" type="text" class="form-control input-sm">
                        </div>
                        <div class="form-group col-xs-12">
                            <label>备注</label>
                            <textarea class="form-control" v-model="clxx.bz" name="bz"></textarea>
                        </div>
                    </form>
                </div>
                <div class="modal-footer">
                    <div class="text-center">
                        <button @click="tjcl" type="button" class="btn btn-primary" :disabled="zztjcl">提交</button>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="modal" id="bjDiv" data-backdrop="static">
        <div class="modal-dialog" style="width: 1100px">
            <!--<span class="btn btn-primary" data-original=""></span>-->
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close" @click="close2">
                        <span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">编辑材料</h4>
                </div>
                <div class="modal-body row">
                    <form role="form" id="bjclForm">
                        <div class="form-group col-xs-12">
                            <label>*文件序号</label>
                            <input name="wjxh" v-model="clxx.wjxh" type="text" class="form-control input-sm" readonly>
                        </div>
                        <div class="form-group col-xs-12">
                            <label>*材料名称</label>
                            <textarea name="clmc" v-model="clxx.clmc" type="text" class="form-control input-sm" readonly></textarea>
                        </div>
                        <div class="form-group col-xs-12">
                            <label>份数</label>
                            <input name="fs" v-model="clxx.fs" type="text" class="form-control input-sm">
                        </div>
                        <div class="form-group col-xs-12">
                            <label>起始页码</label>
                            <input name="qsym" v-model="clxx.qsym" type="text" class="form-control input-sm">
                        </div>
                        <div class="form-group col-xs-12">
                            <label>终止页码</label>
                            <input name="zzym" v-model="clxx.zzym" type="text" class="form-control input-sm">
                        </div>
                        <div class="form-group col-xs-12">
                            <label>页数</label>
                            <input name="ys" v-model="clxx.ys" type="text" class="form-control input-sm">
                        </div>
                        <div class="form-group col-xs-12">
                            <label>年份</label>
                            <input name="year" v-model="clxx.year" type="text" class="form-control input-sm">
                        </div>
                        <div class="form-group col-xs-12">
                            <label>案卷号/文号/许可证号</label>
                            <input name="otherZh" v-model="clxx.otherZh" type="text" class="form-control input-sm">
                        </div>
                        <div class="form-group col-xs-12">
                            <label>受理时间</label>
                            <input name="slsj" v-model="clxx.slsj" type="text" class="form-control input-sm">
                        </div>
                        <div class="form-group col-xs-12">
                            <label>备注</label>
                            <textarea class="form-control" v-model="clxx.bz" name="bz"></textarea>
                        </div>
                    </form>
                </div>
                <div class="modal-footer">
                    <div class="text-center">
                        <button @click="bjcl" type="button" class="btn btn-primary" :disabled="zzbjcl">提交</button>
                        <!--<button type="button" class="btn btn-primary" data-dismiss="modal" @click="scFiles2">上传文件夹</button>-->
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="modal" id="filesModal" data-backdrop="static">
        <div class="modal-dialog" style="height: 500px">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">上传文件夹</h4>
                </div>
                <div class="modal-body">
                    <div class="input-group">
                        <div class="custom-file">
                            <input @change="filesChange" id="fileUpload" type="file" multiple webkitdirectory class="custom-file-input" ref="fileUpload">
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default pull-left" data-dismiss="modal" @click="close">关闭</button>
                    <button @click.prevent="doUploadFiles" type="submit" class="btn btn-primary">上传该文件夹</button>
                </div>
            </div>
            <!-- /.modal-content -->
        </div>
        <!-- /.modal-dialog -->
    </div>

    <div class="modal" id="filesModal2" data-backdrop="static">
        <div class="modal-dialog" style="height: 500px">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">上传文件夹</h4>
                </div>
                <div class="modal-body">
                    <div class="input-group">
                        <div class="custom-file">
                            <input @change="filesChange2" id="fileUpload2" type="file" multiple webkitdirectory class="custom-file-input" ref="fileUpload2">
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default pull-left" data-dismiss="modal" @click="close2">关闭</button>
                    <button @click.prevent="doUploadFiles2" type="submit" class="btn btn-primary">上传该文件夹</button>
                </div>
            </div>
            <!-- /.modal-content -->
        </div>
        <!-- /.modal-dialog -->
    </div>

    <div class="modal" id="shrModal" data-backdrop="static">
        <div class="modal-dialog" style="height: 500px">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">选择审核人</h4>
                </div>
                <div class="modal-body">
                    <span aria-hidden="true">审核人：</span></button>
                    <select v-model="shr">
                        <option v-for="(v,k) in shrs" :value="v.id" >{{v.name}}</option>
                    </select>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default pull-left" data-dismiss="modal" @click="closeshr">关闭</button>
                    <button @click.prevent="sureSelect" type="button" class="btn btn-primary">确认选择</button>
                </div>
            </div>
            <!-- /.modal-content -->
        </div>
        <!-- /.modal-dialog -->
    </div>

    <div class="modal" id="scclModel" data-backdrop="static">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">删除确认提醒</h4>
                </div>
                <div class="modal-body">
                    <h5>你确定要删除该材料吗？</h5>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default pull-left" data-dismiss="modal" @click="cancelcl">取消</button>
                    <button @click="sureSccl" type="button" class="btn btn-primary">确认删除</button>
                </div>
            </div>
            <!-- /.modal-content -->
        </div>
        <!-- /.modal-dialog -->
    </div>

    <div class="modal" id="scdaModel" data-backdrop="static">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">删除确认提醒</h4>
                </div>
                <div class="modal-body">
                    <h5>你确定要删除该档案吗？</h5>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default pull-left" data-dismiss="modal" @click="cancelda">取消</button>
                    <button @click="sureDa" type="button" class="btn btn-primary">确认删除</button>
                </div>
            </div>
            <!-- /.modal-content -->
        </div>
        <!-- /.modal-dialog -->
    </div>

    <div class="modal" id="scwsdaModel" data-backdrop="static">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">删除确认提醒</h4>
                </div>
                <div class="modal-body">
                    <h5>你确定要删除该档案吗？</h5>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default pull-left" data-dismiss="modal" @click="cancelws">取消</button>
                    <button @click="sureWs" type="button" class="btn btn-primary">确认删除</button>
                </div>
            </div>
            <!-- /.modal-content -->
        </div>
        <!-- /.modal-dialog -->
    </div>


    <div class="col-xs-12 left">
        <div class="row" style="height: 54px;border-bottom: 1px solid #E0E0E0">
            <label class="col-xs-4" style="color: #3A3A3A;font-weight: 600;padding-top: 17px;font-size: 16px">录入详情</label>
        </div>
        <div class="box-body" style="margin-top: -30px;">
            <table class="table table-bordered table-hover text-center" id="userTable">

            </table>
        </div>
    </div>
</div>

<script src="/static/plugins/jQuery/jquery-2.2.3.min.js"></script>
<!-- Bootstrap 3.3.6 -->
<script src="/static/bootstrap/js/bootstrap.min.js"></script>
<!-- Slimscroll -->
<script src="/static/plugins/slimScroll/jquery.slimscroll.min.js"></script>
<!-- FastClick -->
<script src="/static/plugins/fastclick/fastclick.js"></script>

<!-- AdminLTE App -->
<script src="/static/dist/js/app.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="/static/dist/js/demo.js"></script>
<!--tabs-->
<script src="/static/dist/js/app_iframe.js"></script>
<script src="/static/js/bootstrap-treeview.js"></script>
<script src="/static/js/bootstrapValidator.min.js"></script>
<script src="/static/js/bootstrap-table.min.js"></script>
<script src="/static/js/bootstrap-table-zh-CN.js"></script>
<script src="/static/js/vue.js"></script>
<script src="/static/js/vue-resource.min.js"></script>
<script src="/static/layer/layer.js"></script>
<script src="/static/js/myJs.js?v=shujubuwqd12138"></script>
<script src="/static/js/fileinput.min.js"></script>
<script src="/static/js/viewer.min.js"></script>

<script type="text/javascript">
    var nextid;
    var preid;
    var scid;
    var aid;
    var atype;
    var atypeId;
    var atypeName;
    var dabh;
    var dalx;
    var Id = 0;
    var dabh2;

    var viewer2;
    //键盘按下
    var kdLxNodes;
    var kdid;
    var kdId = 0;
    var kdtreeNum;
    window.document.onkeydown = isSearch;
    function paramsMatter(value,row,index) {
        var span=document.createElement('span');
        span.setAttribute('title',value);
        span.innerHTML = value;
        return span.outerHTML;
    }
    function isSearch(event) {
        var keynum;
        var keychar;
        var numcheck;

        if(window.event) // IE
        {
            keynum = event.keyCode
        } else if(event.which) // Netscape/Firefox/Opera
        {
            keynum = event.which
        }
        if(keynum === 37){
            if(kdtreeNum == 2){
                viewer2.destroy();
            }else if(kdtreeNum == 3){
                viewer.destroy();
            }
            openpre(kdLxNodes,kdid,kdId,kdtreeNum);
        }else if(keynum === 39){
            if(kdtreeNum == 2){
                viewer2.destroy();
            }else if(kdtreeNum == 3){
                viewer.destroy();
            }
            opennext(kdLxNodes,kdid,kdId,kdtreeNum);
        }
    }
    function openpre(lxNodes,id,Id,treeNum) {
        preid = id;
        //var data = new FormData();
        // data.append('lxNodes',lxNodes);
        // data.append('id',id);
        // data.append('type',0);
        var upanddownImgVo = {
            'id':id,
            'type':0,
            'lxNodes':lxNodes,
        };
        $.ajax({
            url: '/jy/api/upanddownImg',
            type: 'post',
            dataType:'JSON',
            data: JSON.stringify(upanddownImgVo),
            cache: false,
            contentType: 'application/json; charset=UTF-8',
            processData: false,
            //dataType: "json",
            async: false,
            success: function (result) {
                if(result.code == 200){
                    var id = result.data;
                    preid = id;
                    kdid = id;
                    if(treeNum == 3){
                        $('#tree3Img').attr('dataUrl', '/jy/api/getImg?path='+id+'&jyId='+Id);
                        var viewer = new Viewer(document.getElementById('tree3'), {
                            inline: true,
                            url: 'dataUrl',
                            //navbar: false,
                            zIndexInline: 9999,
                            button: true,
                            backdrop: true,
                            keyboard:true,
                            navbar:false,
                            toolbar: {
                                zoomIn: {
                                    show: 1,
                                    click: function () {
                                        viewer.destroy();
                                    }
                                },
                                zoomOut: 0,
                                oneToOne: 0,
                                reset: 0,
                                prev: {
                                    show:1,
                                    click:function(){
                                        viewer.destroy();
                                        openpre(lxNodes,id,Id,3);
                                    }

                                },
                                next: {
                                    show:1,
                                    click:function(){
                                        viewer.destroy();
                                        opennext(lxNodes,id,Id,3)
                                    }
                                },
                                rotateLeft: 1,
                                rotateRight: 1,
                                flipHorizontal: 0,
                                flipVertical: 0,
                            },
                        });
                    }else if(treeNum == 2){
                        $('#tree2Img').attr('dataUrl', '/jy/api/getImg?path='+id+'&jyId='+Id);
                        viewer2 = new Viewer(document.getElementById('tree2'), {
                            inline: true,
                            url: 'dataUrl',
                            //navbar: false,
                            zIndexInline: 9999,
                            button: true,
                            backdrop: true,
                            keyboard:true,
                            navbar:false,
                            toolbar: {
                                zoomIn: {
                                    show: 1,
                                    click: function () {
                                        viewer2.destroy();
                                    }
                                },
                                zoomOut: 0,
                                oneToOne: 0,
                                reset: 0,
                                prev: {
                                    click:function(){
                                        viewer2.destroy();
                                        openpre(lxNodes,id,Id,2);
                                    }
                                },
                                next: {
                                    show:1,
                                    click:function(){
                                        viewer2.destroy();
                                        opennext(lxNodes,id,Id,2)
                                    }
                                },
                                rotateLeft: 1,
                                rotateRight: 1,
                                flipHorizontal: 0,
                                flipVertical: 0,
                            },
                        });
                    }
                }else {
                    cxAlertts("已经是第一张");
                    if(treeNum == 3){
                        $('#tree3Img').attr('dataUrl', '/jy/api/getImg?path='+preid+'&jyId='+Id);
                        var viewer = new Viewer(document.getElementById('tree3'), {
                            inline: true,
                            url: 'dataUrl',
                            //navbar: false,
                            zIndexInline: 9999,
                            button: true,
                            backdrop: true,
                            keyboard:true,
                            navbar:false,
                            toolbar: {
                                zoomIn: {
                                    show: 1,
                                    click: function () {
                                        viewer.destroy();
                                    }
                                },
                                zoomOut: 0,
                                oneToOne: 0,
                                reset: 0,
                                prev: {
                                    show:1,
                                    click:function(){
                                        viewer.destroy();
                                        openpre(lxNodes,id,Id,3);
                                    }

                                },
                                next: {
                                    show:1,
                                    click:function(){
                                        viewer.destroy();
                                        opennext(lxNodes,id,Id,3)
                                    }
                                },
                                rotateLeft: 1,
                                rotateRight: 1,
                                flipHorizontal: 0,
                                flipVertical: 0,
                            },
                        });
                    }else if(treeNum == 2){
                        $('#tree2Img').attr('dataUrl', '/jy/api/getImg?path='+preid+'&jyId='+Id);
                        viewer2 = new Viewer(document.getElementById('tree2'), {
                            inline: true,
                            url: 'dataUrl',
                            //navbar: false,
                            zIndexInline: 9999,
                            button: true,
                            backdrop: true,
                            keyboard:true,
                            navbar:false,
                            toolbar: {
                                zoomIn: {
                                    show: 1,
                                    click: function () {
                                        viewer2.destroy();
                                    }
                                },
                                zoomOut: 0,
                                oneToOne: 0,
                                reset: 0,
                                prev: {
                                    click:function(){
                                        viewer2.destroy();
                                        openpre(lxNodes,preid,Id,2);
                                    }
                                },
                                next: {
                                    show:1,
                                    click:function(){
                                        viewer2.destroy();
                                        opennext(lxNodes,preid,Id,2)
                                    }
                                },
                                rotateLeft: 1,
                                rotateRight: 1,
                                flipHorizontal: 0,
                                flipVertical: 0,
                            },
                        });
                    }
                }


            }
        });

        // vue.$http.post('/jy/api/upanddownImg&id='+id+'&type='+0,JSON.stringify(lxNodes)).then(function (result) {
        //     var data = result.body;
        //     if(data.code == 200){
        //
        //     }
        // });
        // var id = decodeURI(ids[preIndex-1]);
        // id =  id.toLowerCase();
    }
    //打开下一张
    function opennext(lxNodes,id,Id,treeNum) {
        nextid = id;
        var upanddownImgVo = {
            'id':id,
            'type':1,
            'lxNodes':lxNodes,
        };
        $.ajax({
            url: '/jy/api/upanddownImg',
            type: 'post',
            dataType:'JSON',
            data: JSON.stringify(upanddownImgVo),
            cache: false,
            contentType: 'application/json; charset=UTF-8',
            processData: false,
            //dataType: "json",
            async: false,
            success: function (result) {
                if(result.code == 200){
                    var id = result.data;
                    nextid = id;
                    kdid = id;
                    if(treeNum == 3){
                        $('#tree3Img').attr('dataUrl', '/jy/api/getImg?path='+id+'&jyId='+Id);
                        var viewer = new Viewer(document.getElementById('tree3'), {
                            inline: true,
                            url: 'dataUrl',
                            //navbar: false,
                            zIndexInline: 9999,
                            button: true,
                            backdrop: true,
                            keyboard:true,
                            navbar:false,
                            toolbar: {
                                zoomIn: {
                                    show: 1,
                                    click: function () {
                                        viewer.destroy();
                                    }
                                },
                                zoomOut: 0,
                                oneToOne: 0,
                                reset: 0,
                                prev: {
                                    show:1,
                                    click:function(){
                                        viewer.destroy();
                                        openpre(lxNodes,id,Id,3);
                                    }

                                },
                                next: {
                                    show:1,
                                    click:function(){
                                        viewer.destroy();
                                        opennext(lxNodes,id,Id,3)
                                    }
                                },
                                rotateLeft: 1,
                                rotateRight: 1,
                                flipHorizontal: 0,
                                flipVertical: 0,
                            },
                        });
                    }else if(treeNum == 2){
                        $('#tree2Img').attr('dataUrl', '/jy/api/getImg?path='+id+'&jyId='+Id);
                        viewer2 = new Viewer(document.getElementById('tree2'), {
                            inline: true,
                            url: 'dataUrl',
                            //navbar: false,
                            zIndexInline: 9999,
                            button: true,
                            backdrop: true,
                            keyboard:true,
                            navbar:false,
                            toolbar: {
                                zoomIn: {
                                    show: 1,
                                    click: function () {
                                        viewer2.destroy();
                                    }
                                },
                                zoomOut: 0,
                                oneToOne: 0,
                                reset: 0,
                                prev: {
                                    click:function(){
                                        viewer2.destroy();
                                        openpre(lxNodes,id,Id,2);
                                    }
                                },
                                next: {
                                    show:1,
                                    click:function(){
                                        viewer2.destroy();
                                        opennext(lxNodes,id,Id,2)
                                    }
                                },
                                rotateLeft: 1,
                                rotateRight: 1,
                                flipHorizontal: 0,
                                flipVertical: 0,
                            },
                        });
                    }
                }else {
                    cxAlertts("已经是最后一张");
                    if(treeNum == 3){
                        $('#tree3Img').attr('dataUrl', '/jy/api/getImg?path='+nextid+'&jyId='+Id);
                        var viewer = new Viewer(document.getElementById('tree3'), {
                            inline: true,
                            url: 'dataUrl',
                            //navbar: false,
                            zIndexInline: 9999,
                            button: true,
                            backdrop: true,
                            keyboard:true,
                            navbar:false,
                            toolbar: {
                                zoomIn: {
                                    show: 1,
                                    click: function () {
                                        viewer.destroy();
                                    }
                                },
                                zoomOut: 0,
                                oneToOne: 0,
                                reset: 0,
                                prev: {
                                    show:1,
                                    click:function(){
                                        viewer.destroy();
                                        openpre(lxNodes,nextid,Id,3);
                                    }

                                },
                                next: {
                                    show:1,
                                    click:function(){
                                        viewer.destroy();
                                        opennext(lxNodes,nextid,Id,3)
                                    }
                                },
                                rotateLeft: 1,
                                rotateRight: 1,
                                flipHorizontal: 0,
                                flipVertical: 0,
                            },
                        });
                    }else if(treeNum == 2){
                        $('#tree2Img').attr('dataUrl', '/jy/api/getImg?path='+nextid+'&jyId='+Id);
                        viewer2 = new Viewer(document.getElementById('tree2'), {
                            inline: true,
                            url: 'dataUrl',
                            //navbar: false,
                            zIndexInline: 9999,
                            button: true,
                            backdrop: true,
                            keyboard:true,
                            navbar:false,
                            toolbar: {
                                zoomIn: {
                                    show: 1,
                                    click: function () {
                                        viewer2.destroy();
                                    }
                                },
                                zoomOut: 0,
                                oneToOne: 0,
                                reset: 0,
                                prev: {
                                    click:function(){
                                        viewer2.destroy();
                                        openpre(lxNodes,nextid,Id,2);
                                    }
                                },
                                next: {
                                    show:1,
                                    click:function(){
                                        viewer2.destroy();
                                        opennext(lxNodes,nextid,Id,2)
                                    }
                                },
                                rotateLeft: 1,
                                rotateRight: 1,
                                flipHorizontal: 0,
                                flipVertical: 0,
                            },
                        });
                    }

                }


            }
        });

        // vue.$http.post('/jy/api/upanddownImg&id='+id+'&type='+0,JSON.stringify(lxNodes)).then(function (result) {
        //     var data = result.body;
        //     if(data.code == 200){
        //
        //     }
        // });
        // var id = decodeURI(ids[preIndex-1]);
        // id =  id.toLowerCase();
    }

    //编辑
    function bj(id,dabh,typeName) {
        dabh2 = dabh;
        var myMsg = cxLoad("编辑中");
        $.get("/dalr/api/querycl?id=" + id, function (result) {
            var index;
            if (result.code == 200) {
                layer.close(myMsg);
                vue.$data.clxx = result.data;
                vue.$data.clxx.typeName = typeName;
                //vue.$data.clxx.typeId = typeId;
                vue.$data.clxx.dabh = dabh2;
                $('#bjDiv').modal('show');
            }
        });


    }
    //添加材料
    function tj() {

    }
    //删除材料
    function sccl(id) {
        scid = id;
        $('#scclModel').modal('show');
    }
    //删除文书档案
    function deleteWs() {
        $('#scwsdaModel').modal('show');
    }
    //删除科技档案
    function deleteDa() {
        $('#scdaModel').modal('show');
    }
    //作废
    function surezf(id){
        var url;
        url = '/dalr/api/rgaudit?id='+id+'&flag='+3;
        var myMsg = cxLoad("作废中");
        vue.$http.get(url).then( function (result) {
            parent.refresh();
            var data = result.body;
            if(data.code == 200){
                layer.close(myMsg);
                cxAlertOk("废弃成功");
                $("#userTable").bootstrapTable('destroy');
                $('#userTable').bootstrapTable({
                    url: '/dalr/api/queryDRg',
                    contentType: "application/json; charset=UTF-8",
                    type: "GET",
                    dataType: 'json',
                    queryParamsType: "",
                    sortName : 'rgsj',
                    sortOrder : 'desc',
                    singleSelect: true,
                    paginationShowPageGo: true,
                    pageNumber:1,
                    pageSize:5,
                    queryParams: function (params) {
                        return {'pageNum':params.pageNumber,'pageSize':params.pageSize,'sort':params.sortOrder};
                    },
                    striped: true,
                    smartDisplay:false,
                    cache: false,
                    pagination: true,
                    pageList: [5,10],
                    sidePagination: 'server',
                    toolbar: "#addtool",
                    columns: [{
                        field: 'dabh',
                        title: '档案编号',
                        formatter:paramsMatter
                    },{
                        field: 'ajtm',
                        title: '案卷题名',
                        formatter:paramsMatter
                    }, {
                        field: 'dtslbh',
                        title: '大厅受理编号',
                        formatter:paramsMatter
                    }, {
                        field: 'jsdw',
                        title: '建设单位',
                        formatter:paramsMatter
                    },{
                        title: '操作',
                        formatter: function (value, row, index) {
                            var aStr = '<a class="czBtn" href="javascript:tjsh('+row.id+','+row.shrId+')">入馆</a>';
                            aStr += '<a class="czBtn" href="javascript:surezf('+row.id+')">作废</a>';
                            return aStr;
                        }
                    }],
                    responseHandler: function (res) {  //后台返回的结果
                        if (res.code == "200") {
                            var data = res.data.data;
                            var NewData = [];
                            for(i=0;i<data.length;i++){
                                var dd = data[i];
                                dd.roleName = roleId2RoleName(dd.roleId);
                                NewData.push(dd);
                            }
                            var data = {
                                total: res.data.total,
                                rows: NewData
                            };
                            return data;
                        }
                    }
                });
            }
        })
    }
    //提交审核
    function tjsh(id,shrId) {
        if(shrId != null){
            var myMsg = cxLoad("提交中");
            $.get("/dalr/api/submitRg?id=" + id+"&userId="+shrId, function (result) {
                if (result.code == 200) {
                    layer.close(myMsg);
                    cxAlertOk("提交成功");
                    $('#shrModal').modal('hide');
                    $("#userTable").bootstrapTable('destroy');
                    $('#userTable').bootstrapTable({
                        url: '/dalr/api/queryDRg',
                        contentType: "application/json; charset=UTF-8",
                        type: "GET",
                        dataType: 'json',
                        queryParamsType: "",
                        sortName : 'rgsj',
                        sortOrder : 'desc',
                        singleSelect: true,
                        paginationShowPageGo: true,
                        pageNumber:1,
                        pageSize:5,
                        queryParams: function (params) {
                            return {'pageNum':params.pageNumber,'pageSize':params.pageSize,'sort':params.sortOrder};
                        },
                        striped: true,
                        smartDisplay:false,
                        cache: false,
                        pagination: true,
                        pageList: [5,10],
                        sidePagination: 'server',
                        toolbar: "#addtool",
                        columns: [{
                            field: 'dabh',
                            title: '档案编号',
                            formatter:paramsMatter
                        },{
                            field: 'ajtm',
                            title: '案卷题名',
                            formatter:paramsMatter
                        }, {
                            field: 'dtslbh',
                            title: '大厅受理编号',
                            formatter:paramsMatter
                        }, {
                            field: 'jsdw',
                            title: '建设单位',
                            formatter:paramsMatter
                        },{
                            title: '操作',
                            formatter: function (value, row, index) {
                                var aStr = '<a class="czBtn" href="javascript:tjsh('+row.id+','+row.shrId+')">入馆</a>';
                                aStr += '<a class="czBtn" href="javascript:surezf('+row.id+')">作废</a>';
                                return aStr;
                            }
                        }],
                        responseHandler: function (res) {  //后台返回的结果
                            if (res.code == "200") {
                                var data = res.data.data;
                                var NewData = [];
                                for(i=0;i<data.length;i++){
                                    var dd = data[i];
                                    dd.roleName = roleId2RoleName(dd.roleId);
                                    NewData.push(dd);
                                }
                                var data = {
                                    total: res.data.total,
                                    rows: NewData
                                };
                                return data;
                            }
                        }
                    });
                }
            });
        }else {
            $.get("listRgShUser",function (result){
                if(result.code == 200){
                    vue.$data.shrs = result.data;
                    $('#shrModal').modal('show');
                    vue.$data.id = id;
                }
            });
        }
    }
    var vue = new Vue({
        el: '#yhgl',
        data: {
            zztjcl:false,
            zzbjcl:false,
            length:null,
            length2:null,
            id:null,
            shrs:null,//审核人们
            shr:null,// 审核人
            scsmyj:{
                yjmc:null,
            },
            dalxText:null,
            newUser:{
                name:null,
                dw:null,
                phone:null,
                roleId:null,
                account:null,
                password:null,
            },
            jyxx: {
                jyyy: null,
                jysx: null,
                dabh: null,
                jyrLxdh: null,
                jyr: null,
                shrLxdh: null,
                shrId: null,
                shr: null,
                damc: null,
                dalx: null,
            },
            gdxx: {
                typeName:null,
                type_name:null,//
                id:null,
                typeId:null,//
                dabh:null,
                xmbh:null,
                xmmc:null,
                year:null,
                dtslbh:null,//大厅受理编号
                yhh:null,//原盒号
                jsdw:null,//建设单位
                jswz:null,//建设位置
                jsxmxzyjssj:null,//建设项目选址意见书时间
                xzxmmc:null,//选址项目名称
                xzydmj:null,//选址用地面积
                jsydghxkzsj:null,//建设用地规划许可证时间
                ghxmmc:null,//规划项目名称
                ghydmj:null,//规划用地面积
                jsgcghxkzsj:null,//建设工程规划许可证时间
                gcxmmc:null,//工程项目名称
                gcjsgm:null,//工程建设规模
                jsgcjgghyshgsj:null,//建设工程竣工规划验收合格证时间
                gcjgxmmc:null,//工程竣工项目名称
                gcjgjsgm:null,//工程竣工建设规模
                jsgcsgxkzsj:null,//建设工程施工许可证时间
                jsgcsgxkzbh:null,//建设工程施工许可证编号
                sggcmc:null,//施工工程名称
                sgjsgm:null,//施工建设规模
                qt:null,//其他
                xmfatgsj:null,//项目通过时间
                ys:null,//页数
                daccwz:null,//档案存储位置
                clj:null,//超链接
                zly:null,//著录员
                zlsj:null,//著录时间
                bz:null,//备注
            },
            wsxx:{
                bz:null,
                jyId:null,
                //files:[],
                id:null,
                typeId:null,
                dabh:null,//档案编号
                dwmc:null,//单位名称
                nf:null,//年份
                sj:null,//时间
                typeName:null,
                wh:null,//文号
                wjmc:null,//文件名称
                yh:null,//页号
                ys:null,//页数
                zhh:null,//总盒号
            },
            clxx:{
                slsj:null,
                typeName:null,
                clmc:null,
                otherZh:null,
                dabh:null,
                typeId:null,
                wjxh:null,
                //clmc:null,
                fs:null,
                qsym:null,
                zzym:null,
                ys:null,
                year:null,
                otherZh:null,
                bz:null
            }
        },
        methods: {
            //确定删除文书档案
            sureWs:function(){
                var id = vue.$data.wsxx.id;
                var myMsg = cxLoad("删除中");
                $.get("/dalr/api/deletedaWs?id=" + id, function (result) {
                    if (result.code == 200) {
                        layer.close(myMsg);
                        cxAlertOk("删除成功");
                        $('#scwsdaModel').modal('hide');
                        $('#jydawsDiv').modal('hide');
                        $("#userTable").bootstrapTable('destroy');
                        $('#userTable').bootstrapTable({
                            url: '/dalr/api/queryDRg',
                            contentType: "application/json; charset=UTF-8",
                            type: "GET",
                            dataType: 'json',
                            queryParamsType: "",
                            sortName : 'rgsj',
                            sortOrder : 'desc',
                            singleSelect: true,
                            paginationShowPageGo: true,
                            pageNumber:1,
                            pageSize:5,
                            queryParams: function (params) {
                                return {'pageNum':params.pageNumber,'pageSize':params.pageSize,'sort':params.sortOrder};
                            },
                            striped: true,
                            smartDisplay:false,
                            cache: false,
                            pagination: true,
                            pageList: [5,10],
                            sidePagination: 'server',
                            toolbar: "#addtool",
                            columns: [{
                                field: 'dabh',
                                title: '档案编号',
                                formatter:paramsMatter
                            },{
                                field: 'ajtm',
                                title: '案卷题名',
                                formatter:paramsMatter
                            }, {
                                field: 'dtslbh',
                                title: '大厅受理编号',
                                formatter:paramsMatter
                            }, {
                                field: 'jsdw',
                                title: '建设单位',
                                formatter:paramsMatter
                            },{
                                title: '操作',
                                formatter: function (value, row, index) {
                                    var aStr = '<a class="czBtn" href="javascript:tjsh('+row.id+','+row.shrId+')">入馆</a>';
                                    aStr += '<a class="czBtn" href="javascript:surezf('+row.id+')">作废</a>';
                                    return aStr;
                                }
                            }],
                            responseHandler: function (res) {  //后台返回的结果
                                if (res.code == "200") {
                                    var data = res.data.data;
                                    var NewData = [];
                                    for(i=0;i<data.length;i++){
                                        var dd = data[i];
                                        dd.roleName = roleId2RoleName(dd.roleId);
                                        NewData.push(dd);
                                    }
                                    var data = {
                                        total: res.data.total,
                                        rows: NewData
                                    };
                                    return data;
                                }
                            }
                        });
                    }else {
                        layer.close(myMsg);
                        cxAlert(result.mess);
                        $('#scwsdaModel').modal('hide');
                        $.get("/dalr/api/queryRgDaxx?dabh=" + dabh2, function (result) {
                            if (result.code == 200) {
                                var data = result.data;
                                var lxNodes = data.lxNodes;
                                kdLxNodes = data.lxNodes;
                                if(atype == 2){
                                    kdtreeNum = 3;
                                    var dah = data.daxxWsRg.dabh;
                                    var clxxName = data.daxxWsRg.typeName;
                                    vue.$data.clxx.typeName = data.daxxWsRg.typeName;
                                    vue.$data.clxx.typeId = data.daxxWsRg.typeId;
                                    vue.$data.clxx.dabh = data.daxxWsRg.dabh;
                                    vue.$data.wsxx = data.daxxWsRg;
                                    if(lxNodes[0].nodes == null){
                                        $('#tree5').treeview({
                                            color: "#428bca",
                                            collapseIcon: "glyphicon glyphicon-minus",//可收缩的节点图标
                                            // nodeIcon: "glyphicon glyphicon-user",
                                            emptyIcon: "glyphicon glyphicon-folder-open",//设置列表树中没有子节点的节点的图标
                                            expandIcon: "glyphicon glyphicon-plus",  //设置列表上中有子节点的图标
                                            highlightSearchResults: true,//是否高亮搜索结果 默认true
                                            highlightSelected: true,     //是否选中高亮显示
                                            onhoverColor: "#f5f5f5",    //鼠标滑过的颜色
                                            levels: 0 ,// 设置初始化展开几级菜单 默认为2
                                            showBorder: true,                //是否显示边框
                                            data: data.lxNodes,
                                            //showCheckbox: true,
                                            multiSelect: false,
                                            //onNodeChecked: nodeChecked,
                                            //onNodeUnchecked: nodeUnchecked,
                                            onNodeSelected: function (event, data) {
                                                var id = data.id;
                                                kdid = data.id;
                                                id = decodeURIComponent(id);
                                                id =  id.toLowerCase();

                                                if(id.indexOf(".png")!=-1|| id.indexOf(".jpg")!=-1){
                                                    $('#tree3Img').attr('dataUrl', '/jy/api/getImg?path='+data.id+'&jyId='+Id);
                                                    viewer = new Viewer(document.getElementById('tree3'), {
                                                        inline: true,
                                                        url: 'dataUrl',
                                                        //navbar: false,
                                                        zIndexInline: 9999,
                                                        button: true,
                                                        fullscreen:false,
                                                        backdrop: true,
                                                        keyboard:true,
                                                        navbar:false,
                                                        toolbar: {
                                                            zoomIn: {
                                                                show: 1,
                                                                click: function () {
                                                                    viewer.destroy();
                                                                }
                                                            },
                                                            zoomOut: 0,
                                                            oneToOne: 0,
                                                            reset: 0,
                                                            prev: {
                                                                show:1,
                                                                click: function(){
                                                                    viewer.destroy();
                                                                    openpre(lxNodes,data.id,Id,3)
                                                                }

                                                            },
                                                            next: {
                                                                show:1,
                                                                click: function(){
                                                                    viewer.destroy();
                                                                    opennext(lxNodes,data.id,Id,3)
                                                                }

                                                            },
                                                            rotateLeft: 1,
                                                            rotateRight: 1,
                                                            flipHorizontal: 0,
                                                            flipVertical: 0,
                                                        },
                                                    });
                                                }else if(id.indexOf(".pdf")!=-1){
                                                    var u = "/jy/api/getPdf/"+id+"/"+Id;
                                                    //var u = "/jy/api/getPdf/"+dah+"/"+clxxName+"/"+data.id+"/"+Id;

                                                    top.addTabs({
                                                        id: "63233",
                                                        text: "PDF浏览器",
                                                        icon: "fa fa-circle-o",
                                                        url: "/static/pdf/web/viewer.html?file="+u,
                                                        targetType: "iframe-tab",
                                                        close:true
                                                    });
                                                }
                                            }
                                        });
                                    }else {
                                        $('#tree5').treeview({
                                            color: "#428bca",
                                            collapseIcon: "glyphicon glyphicon-minus",//可收缩的节点图标
                                            // nodeIcon: "glyphicon glyphicon-user",
                                            emptyIcon: "glyphicon glyphicon-file",//设置列表树中没有子节点的节点的图标
                                            expandIcon: "glyphicon glyphicon-plus",  //设置列表上中有子节点的图标
                                            highlightSearchResults: true,//是否高亮搜索结果 默认true
                                            highlightSelected: true,     //是否选中高亮显示
                                            onhoverColor: "#f5f5f5",    //鼠标滑过的颜色
                                            levels: 0 ,// 设置初始化展开几级菜单 默认为2
                                            showBorder: true,                //是否显示边框
                                            data: data.lxNodes,
                                            //showCheckbox: true,
                                            multiSelect: false,
                                            //onNodeChecked: nodeChecked,
                                            //onNodeUnchecked: nodeUnchecked,
                                            onNodeSelected: function (event, data) {
                                                var id = data.id;
                                                kdid = data.id;
                                                id = decodeURIComponent(id);
                                                id =  id.toLowerCase();

                                                if(id.indexOf(".png")!=-1|| id.indexOf(".jpg")!=-1){
                                                    $('#tree3Img').attr('dataUrl', '/jy/api/getImg?path='+data.id+'&jyId='+Id);
                                                    viewer = new Viewer(document.getElementById('tree3'), {
                                                        inline: true,
                                                        url: 'dataUrl',
                                                        //navbar: false,
                                                        zIndexInline: 9999,
                                                        button: true,
                                                        fullscreen:false,
                                                        backdrop: true,
                                                        keyboard:true,
                                                        navbar:false,
                                                        toolbar: {
                                                            zoomIn: {
                                                                show: 1,
                                                                click: function () {
                                                                    viewer.destroy();
                                                                }
                                                            },
                                                            zoomOut: 0,
                                                            oneToOne: 0,
                                                            reset: 0,
                                                            prev: {
                                                                show:1,
                                                                click: function(){
                                                                    viewer.destroy();
                                                                    openpre(lxNodes,data.id,Id,3)
                                                                }

                                                            },
                                                            next: {
                                                                show:1,
                                                                click: function(){
                                                                    viewer.destroy();
                                                                    opennext(lxNodes,data.id,Id,3)
                                                                }

                                                            },
                                                            rotateLeft: 1,
                                                            rotateRight: 1,
                                                            flipHorizontal: 0,
                                                            flipVertical: 0,
                                                        },
                                                    });
                                                }else if(id.indexOf(".pdf")!=-1){
                                                    var u = "/jy/api/getPdf/"+id+"/"+Id;
                                                    //var u = "/jy/api/getPdf/"+dah+"/"+clxxName+"/"+data.id+"/"+Id;

                                                    top.addTabs({
                                                        id: "63233",
                                                        text: "PDF浏览器",
                                                        icon: "fa fa-circle-o",
                                                        url: "/static/pdf/web/viewer.html?file="+u,
                                                        targetType: "iframe-tab",
                                                        close:true
                                                    });
                                                }
                                            }
                                        });
                                    }

                                    $("#daTable2").bootstrapTable('destroy');
                                    $('#daTable2').bootstrapTable({
                                        url: '/dalr/api/queryDabhClxx?dabh='+vue.$data.clxx.dabh,
                                        contentType: "application/json; charset=UTF-8",
                                        type: "GET",
                                        dataType: 'json',
                                        queryParamsType: "",
                                        singleSelect: true,
                                        paginationShowPageGo: true,
                                        pageNumber:1,
                                        pageSize:5,
                                        // queryParams: function (params) {
                                        //     return {'pageNum':params.pageNumber,'pageSize':params.pageSize};
                                        // },
                                        striped: true,
                                        smartDisplay:false,
                                        cache: false,
                                        //pagination: true,
                                        pageList: [5,10],
                                        sidePagination: 'server',
                                        toolbar: "#addtool",
                                        columns: [
                                            {
                                                title: '档案类型',
                                                field:'typeName',
                                                formatter:paramsMatter
                                            },{
                                                field: 'dabh',
                                                title: '档案编号',
                                                formatter:paramsMatter
                                            },
                                            {
                                                title: '文件序号',
                                                field:'wjxh',
                                                formatter:paramsMatter
                                            },{
                                                field: 'clxxName',
                                                title: '材料名称',
                                                formatter:paramsMatter
                                            },{
                                                title: '操作',
                                                formatter: function (value, row, index) {
                                                    var aStr = '<a class="btn-primary btn" href="javascript:bj('+row.id+',\''+row.dabh+'\',\''+row.typeName+'\')">编辑</a>';
                                                    // aStr += '<a class="btn-success btn" href="javascript:tj('+row.id+')">添加</a>';
                                                    aStr += '<a class="btn-danger btn" href="javascript:sccl('+row.id+')">删除</a>';
                                                    return aStr;
                                                }
                                            }],
                                        responseHandler: function (res) {  //后台返回的结果
                                            if (res.code == "200") {
                                                var data = res.data;
                                                vue.$data.length2 = data.length;
                                                var NewData = [];
                                                for(i=0;i<data.length;i++){
                                                    var dd = data[i];
                                                    dd.roleName = roleId2RoleName(dd.roleId);
                                                    NewData.push(dd);
                                                }
                                                var data = {
                                                    total: res.data.total,
                                                    rows: NewData
                                                };
                                                return data;
                                            }
                                        }
                                    });
                                    $('#jydawsDiv').modal('show');
                                }else{
                                    kdtreeNum = 2;
                                    vue.$data.clxx.typeName = data.daxxRg.typeName;
                                    vue.$data.clxx.typeId = data.daxxRg.typeId;
                                    vue.$data.clxx.dabh = data.daxxRg.dabh;
                                    vue.$data.gdxx = data.daxxRg;
                                    var jyId = data.daxxRg.id;
                                    if(data.lxNodes[0].nodes == null){
                                        $('#tree').treeview({
                                            color: "#428bca",
                                            collapseIcon: "glyphicon glyphicon-minus",//可收缩的节点图标
                                            // nodeIcon: "glyphicon glyphicon-user",
                                            emptyIcon: "glyphicon glyphicon-folder-open",//设置列表树中没有子节点的节点的图标
                                            expandIcon: "glyphicon glyphicon-plus",  //设置列表上中有子节点的图标
                                            highlightSearchResults: true,//是否高亮搜索结果 默认true
                                            highlightSelected: true,     //是否选中高亮显示
                                            onhoverColor: "#f5f5f5",    //鼠标滑过的颜色
                                            levels: 0 ,// 设置初始化展开几级菜单 默认为2
                                            showBorder: true,                //是否显示边框
                                            data: data.lxNodes,
                                            //showCheckbox: true,
                                            multiSelect: false,
                                            // onNodeChecked: nodeChecked,
                                            // onNodeUnchecked: nodeUnchecked,
                                            onNodeSelected: function (event, data) {
                                                var id = data.id;
                                                kdid = data.id;
                                                id = decodeURIComponent(id);
                                                id =  id.toLowerCase();
                                                if(id.indexOf(".png")!=-1|| id.indexOf(".jpg")!=-1){
                                                    $('#tree2Img').attr('dataUrl', '/jy/api/getImg?path='+data.id+'&jyId='+Id);
                                                    viewer2 = new Viewer(document.getElementById('tree2'), {
                                                        inline: true,
                                                        url: 'dataUrl',
                                                        //navbar: false,
                                                        zIndexInline: 9999,
                                                        button: true,
                                                        backdrop: true,
                                                        navbar:false,
                                                        fullscreen:false,
                                                        toolbar: {
                                                            zoomIn: {
                                                                show: 1,
                                                                click: function () {
                                                                    viewer2.destroy();
                                                                }
                                                            },
                                                            zoomOut: 0,
                                                            oneToOne: 0,
                                                            reset: 0,
                                                            prev: {
                                                                show:1,
                                                                click: function(){
                                                                    viewer2.destroy();
                                                                    openpre(lxNodes,data.id,Id,2)
                                                                }

                                                            },
                                                            next: {
                                                                show:1,
                                                                click: function(){
                                                                    viewer2.destroy();
                                                                    opennext(lxNodes,data.id,Id,2)
                                                                }

                                                            },
                                                            rotateLeft: 1,
                                                            rotateRight: 1,
                                                            flipHorizontal: 0,
                                                            flipVertical: 0,
                                                        },
                                                    });
                                                }else if(id.indexOf(".pdf")!=-1){
                                                    var u = "/jy/api/getPdf/"+id+"/"+Id;
                                                    top.addTabs({
                                                        id: "63233",
                                                        text: "PDF浏览器",
                                                        icon: "fa fa-circle-o",
                                                        url: "/static/pdf/web/viewer.html?file="+u,
                                                        targetType: "iframe-tab",
                                                        close:true
                                                    });
                                                }

                                            }
                                        });
                                    }else {
                                        $('#tree').treeview({
                                            color: "#428bca",
                                            collapseIcon: "glyphicon glyphicon-minus",//可收缩的节点图标
                                            // nodeIcon: "glyphicon glyphicon-user",
                                            emptyIcon: "glyphicon glyphicon-file",//设置列表树中没有子节点的节点的图标
                                            expandIcon: "glyphicon glyphicon-plus",  //设置列表上中有子节点的图标
                                            highlightSearchResults: true,//是否高亮搜索结果 默认true
                                            highlightSelected: true,     //是否选中高亮显示
                                            onhoverColor: "#f5f5f5",    //鼠标滑过的颜色
                                            levels: 0 ,// 设置初始化展开几级菜单 默认为2
                                            showBorder: true,                //是否显示边框
                                            data: data.lxNodes,
                                            //showCheckbox: true,
                                            multiSelect: false,
                                            // onNodeChecked: nodeChecked,
                                            // onNodeUnchecked: nodeUnchecked,
                                            onNodeSelected: function (event, data) {
                                                var id = data.id;
                                                kdid = data.id;
                                                id = decodeURIComponent(id);
                                                id =  id.toLowerCase();
                                                if(id.indexOf(".png")!=-1|| id.indexOf(".jpg")!=-1){
                                                    $('#tree2Img').attr('dataUrl', '/jy/api/getImg?path='+data.id+'&jyId='+Id);
                                                    viewer2 = new Viewer(document.getElementById('tree2'), {
                                                        inline: true,
                                                        url: 'dataUrl',
                                                        //navbar: false,
                                                        zIndexInline: 9999,
                                                        button: true,
                                                        backdrop: true,
                                                        navbar:false,
                                                        fullscreen:false,
                                                        toolbar: {
                                                            zoomIn: {
                                                                show: 1,
                                                                click: function () {
                                                                    viewer2.destroy();
                                                                }
                                                            },
                                                            zoomOut: 0,
                                                            oneToOne: 0,
                                                            reset: 0,
                                                            prev: {
                                                                show:1,
                                                                click: function(){
                                                                    viewer2.destroy();
                                                                    openpre(lxNodes,data.id,Id,2)
                                                                }

                                                            },
                                                            next: {
                                                                show:1,
                                                                click: function(){
                                                                    viewer2.destroy();
                                                                    opennext(lxNodes,data.id,Id,2)
                                                                }

                                                            },
                                                            rotateLeft: 1,
                                                            rotateRight: 1,
                                                            flipHorizontal: 0,
                                                            flipVertical: 0,
                                                        },
                                                    });
                                                }else if(id.indexOf(".pdf")!=-1){
                                                    var u = "/jy/api/getPdf/"+id+"/"+Id;
                                                    top.addTabs({
                                                        id: "63233",
                                                        text: "PDF浏览器",
                                                        icon: "fa fa-circle-o",
                                                        url: "/static/pdf/web/viewer.html?file="+u,
                                                        targetType: "iframe-tab",
                                                        close:true
                                                    });
                                                }

                                            }
                                        });
                                    }

                                    $("#daTable").bootstrapTable('destroy');
                                    $('#daTable').bootstrapTable({
                                        url: '/dalr/api/queryDabhClxx?dabh='+dabh,
                                        contentType: "application/json; charset=UTF-8",
                                        type: "GET",
                                        dataType: 'json',
                                        queryParamsType: "",
                                        //sortName : 'rgsj',
                                        //sortOrder : 'desc',
                                        singleSelect: true,
                                        paginationShowPageGo: true,
                                        pageNumber:1,
                                        pageSize:5,
                                        // queryParams: function (params) {
                                        //     return {'pageNum':params.pageNumber,'pageSize':params.pageSize};
                                        // },
                                        striped: true,
                                        smartDisplay:false,
                                        cache: false,
                                        //pagination: true,
                                        pageList: [5,10],
                                        sidePagination: 'server',
                                        toolbar: "#addtool",
                                        columns: [
                                            {
                                                title: '档案类型',
                                                field:'typeName',
                                                formatter:paramsMatter
                                            },{
                                                field: 'dabh',
                                                title: '档案编号',
                                                formatter:paramsMatter
                                            },
                                            {
                                                title: '文件序号',
                                                field:'wjxh',
                                                formatter:paramsMatter
                                            },{
                                                field: 'clxxName',
                                                title: '材料名称',
                                                formatter:paramsMatter
                                            },{
                                                title: '操作',
                                                formatter: function (value, row, index) {
                                                    var aStr = '<a class="btn-primary btn" href="javascript:bj('+row.id+',\''+row.dabh+'\',\''+row.typeName+'\')">编辑</a>';
                                                    // aStr += '<a class="btn-success btn" href="javascript:tj('+row.id+')">添加</a>';
                                                    aStr += '<a class="btn-danger btn" href="javascript:sccl('+row.id+')">删除</a>';
                                                    return aStr;
                                                }
                                            }],
                                        responseHandler: function (res) {  //后台返回的结果
                                            if (res.code == "200") {
                                                var data = res.data;
                                                vue.$data.length = data.length;
                                                var NewData = [];
                                                for(i=0;i<data.length;i++){
                                                    var dd = data[i];
                                                    dd.roleName = roleId2RoleName(dd.roleId);
                                                    NewData.push(dd);
                                                }
                                                var data = {
                                                    total: res.data.total,
                                                    rows: NewData
                                                };
                                                return data;
                                            }
                                        }
                                    });
                                    $('#jydaDiv').modal('show');
                                }
                            }else{
                                cxAlert(result.mess)
                            }
                        });
                    }
                });
            },
            //取消删除文书档案
            cancelws:function(){
                $('#scwsdaModel').modal('hide');
            },
            //取消删除科技档案
            cancelda:function(){
                $('#scdaModel').modal('hide');
            },
            //确定删除科技档案
            sureDa:function(){
                var dabh = vue.$data.gdxx.dabh;
                var myMsg = cxLoad("删除中");
                $.get("/dalr/api/deleteda?dabh=" + dabh, function (result) {
                    if (result.code == 200) {
                        layer.close(myMsg);
                        cxAlertOk("删除成功");
                        $('#scdaModel').modal('hide');
                        $('#jydaDiv').modal('hide');
                        $("#userTable").bootstrapTable('destroy');
                        $('#userTable').bootstrapTable({
                            url: '/dalr/api/queryDRg',
                            contentType: "application/json; charset=UTF-8",
                            type: "GET",
                            dataType: 'json',
                            queryParamsType: "",
                            sortName : 'rgsj',
                            sortOrder : 'desc',
                            singleSelect: true,
                            paginationShowPageGo: true,
                            pageNumber:1,
                            pageSize:5,
                            queryParams: function (params) {
                                return {'pageNum':params.pageNumber,'pageSize':params.pageSize,'sort':params.sortOrder};
                            },
                            striped: true,
                            smartDisplay:false,
                            cache: false,
                            pagination: true,
                            pageList: [5,10],
                            sidePagination: 'server',
                            toolbar: "#addtool",
                            columns: [{
                                field: 'dabh',
                                title: '档案编号',
                                formatter:paramsMatter
                            },{
                                field: 'ajtm',
                                title: '案卷题名',
                                formatter:paramsMatter
                            }, {
                                field: 'dtslbh',
                                title: '大厅受理编号',
                                formatter:paramsMatter
                            }, {
                                field: 'jsdw',
                                title: '建设单位',
                                formatter:paramsMatter
                            },{
                                title: '操作',
                                formatter: function (value, row, index) {
                                    var aStr = '<a class="czBtn" href="javascript:tjsh('+row.id+','+row.shrId+')">入馆</a>';
                                    aStr += '<a class="czBtn" href="javascript:surezf('+row.id+')">作废</a>';
                                    return aStr;
                                }
                            }],
                            responseHandler: function (res) {  //后台返回的结果
                                if (res.code == "200") {
                                    var data = res.data.data;
                                    var NewData = [];
                                    for(i=0;i<data.length;i++){
                                        var dd = data[i];
                                        dd.roleName = roleId2RoleName(dd.roleId);
                                        NewData.push(dd);
                                    }
                                    var data = {
                                        total: res.data.total,
                                        rows: NewData
                                    };
                                    return data;
                                }
                            }
                        });
                    }else {
                        layer.close(myMsg);
                        cxAlert(result.mess);
                        $('#scdaModel').modal('hide');
                        $.get("/dalr/api/queryRgDaxx?dabh=" + dabh2, function (result) {
                            if (result.code == 200) {
                                var data = result.data;
                                var lxNodes = data.lxNodes;
                                kdLxNodes = data.lxNodes;
                                if(atype == 2){
                                    kdtreeNum = 3;
                                    var dah = data.daxxWsRg.dabh;
                                    var clxxName = data.daxxWsRg.typeName;
                                    vue.$data.clxx.typeName = data.daxxWsRg.typeName;
                                    vue.$data.clxx.typeId = data.daxxWsRg.typeId;
                                    vue.$data.clxx.dabh = data.daxxWsRg.dabh;
                                    vue.$data.wsxx = data.daxxWsRg;
                                    if(data.lxNodes[0].nodes == null){
                                        $('#tree5').treeview({
                                            color: "#428bca",
                                            collapseIcon: "glyphicon glyphicon-minus",//可收缩的节点图标
                                            // nodeIcon: "glyphicon glyphicon-user",
                                            emptyIcon: "glyphicon glyphicon-folder-open",//设置列表树中没有子节点的节点的图标
                                            expandIcon: "glyphicon glyphicon-plus",  //设置列表上中有子节点的图标
                                            highlightSearchResults: true,//是否高亮搜索结果 默认true
                                            highlightSelected: true,     //是否选中高亮显示
                                            onhoverColor: "#f5f5f5",    //鼠标滑过的颜色
                                            levels: 0 ,// 设置初始化展开几级菜单 默认为2
                                            showBorder: true,                //是否显示边框
                                            data: data.lxNodes,
                                            //showCheckbox: true,
                                            multiSelect: false,
                                            //onNodeChecked: nodeChecked,
                                            //onNodeUnchecked: nodeUnchecked,
                                            onNodeSelected: function (event, data) {
                                                var id = data.id;
                                                kdid = data.id;
                                                id = decodeURIComponent(id);
                                                id =  id.toLowerCase();

                                                if(id.indexOf(".png")!=-1|| id.indexOf(".jpg")!=-1){
                                                    $('#tree3Img').attr('dataUrl', '/jy/api/getImg?path='+data.id+'&jyId='+Id);
                                                    viewer = new Viewer(document.getElementById('tree3'), {
                                                        inline: true,
                                                        url: 'dataUrl',
                                                        //navbar: false,
                                                        zIndexInline: 9999,
                                                        button: true,
                                                        fullscreen:false,
                                                        backdrop: true,
                                                        keyboard:true,
                                                        navbar:false,
                                                        toolbar: {
                                                            zoomIn: {
                                                                show: 1,
                                                                click: function () {
                                                                    viewer.destroy();
                                                                }
                                                            },
                                                            zoomOut: 0,
                                                            oneToOne: 0,
                                                            reset: 0,
                                                            prev: {
                                                                show:1,
                                                                click: function(){
                                                                    viewer.destroy();
                                                                    openpre(lxNodes,data.id,Id,3)
                                                                }

                                                            },
                                                            next: {
                                                                show:1,
                                                                click: function(){
                                                                    viewer.destroy();
                                                                    opennext(lxNodes,data.id,Id,3)
                                                                }

                                                            },
                                                            rotateLeft: 1,
                                                            rotateRight: 1,
                                                            flipHorizontal: 0,
                                                            flipVertical: 0,
                                                        },
                                                    });
                                                }else if(id.indexOf(".pdf")!=-1){
                                                    var u = "/jy/api/getPdf/"+id+"/"+Id;
                                                    //var u = "/jy/api/getPdf/"+dah+"/"+clxxName+"/"+data.id+"/"+Id;

                                                    top.addTabs({
                                                        id: "63233",
                                                        text: "PDF浏览器",
                                                        icon: "fa fa-circle-o",
                                                        url: "/static/pdf/web/viewer.html?file="+u,
                                                        targetType: "iframe-tab",
                                                        close:true
                                                    });
                                                }
                                            }
                                        });
                                    }else {
                                        $('#tree5').treeview({
                                            color: "#428bca",
                                            collapseIcon: "glyphicon glyphicon-minus",//可收缩的节点图标
                                            // nodeIcon: "glyphicon glyphicon-user",
                                            emptyIcon: "glyphicon glyphicon-file",//设置列表树中没有子节点的节点的图标
                                            expandIcon: "glyphicon glyphicon-plus",  //设置列表上中有子节点的图标
                                            highlightSearchResults: true,//是否高亮搜索结果 默认true
                                            highlightSelected: true,     //是否选中高亮显示
                                            onhoverColor: "#f5f5f5",    //鼠标滑过的颜色
                                            levels: 0 ,// 设置初始化展开几级菜单 默认为2
                                            showBorder: true,                //是否显示边框
                                            data: data.lxNodes,
                                            //showCheckbox: true,
                                            multiSelect: false,
                                            //onNodeChecked: nodeChecked,
                                            //onNodeUnchecked: nodeUnchecked,
                                            onNodeSelected: function (event, data) {
                                                var id = data.id;
                                                kdid = data.id;
                                                id = decodeURIComponent(id);
                                                id =  id.toLowerCase();

                                                if(id.indexOf(".png")!=-1|| id.indexOf(".jpg")!=-1){
                                                    $('#tree3Img').attr('dataUrl', '/jy/api/getImg?path='+data.id+'&jyId='+Id);
                                                    viewer = new Viewer(document.getElementById('tree3'), {
                                                        inline: true,
                                                        url: 'dataUrl',
                                                        //navbar: false,
                                                        zIndexInline: 9999,
                                                        button: true,
                                                        fullscreen:false,
                                                        backdrop: true,
                                                        keyboard:true,
                                                        navbar:false,
                                                        toolbar: {
                                                            zoomIn: {
                                                                show: 1,
                                                                click: function () {
                                                                    viewer.destroy();
                                                                }
                                                            },
                                                            zoomOut: 0,
                                                            oneToOne: 0,
                                                            reset: 0,
                                                            prev: {
                                                                show:1,
                                                                click: function(){
                                                                    viewer.destroy();
                                                                    openpre(lxNodes,data.id,Id,3)
                                                                }

                                                            },
                                                            next: {
                                                                show:1,
                                                                click: function(){
                                                                    viewer.destroy();
                                                                    opennext(lxNodes,data.id,Id,3)
                                                                }

                                                            },
                                                            rotateLeft: 1,
                                                            rotateRight: 1,
                                                            flipHorizontal: 0,
                                                            flipVertical: 0,
                                                        },
                                                    });
                                                }else if(id.indexOf(".pdf")!=-1){
                                                    var u = "/jy/api/getPdf/"+id+"/"+Id;
                                                    //var u = "/jy/api/getPdf/"+dah+"/"+clxxName+"/"+data.id+"/"+Id;

                                                    top.addTabs({
                                                        id: "63233",
                                                        text: "PDF浏览器",
                                                        icon: "fa fa-circle-o",
                                                        url: "/static/pdf/web/viewer.html?file="+u,
                                                        targetType: "iframe-tab",
                                                        close:true
                                                    });
                                                }
                                            }
                                        });
                                    }

                                    $("#daTable2").bootstrapTable('destroy');
                                    $('#daTable2').bootstrapTable({
                                        url: '/dalr/api/queryDabhClxx?dabh='+vue.$data.clxx.dabh,
                                        contentType: "application/json; charset=UTF-8",
                                        type: "GET",
                                        dataType: 'json',
                                        queryParamsType: "",
                                        singleSelect: true,
                                        paginationShowPageGo: true,
                                        pageNumber:1,
                                        pageSize:5,
                                        // queryParams: function (params) {
                                        //     return {'pageNum':params.pageNumber,'pageSize':params.pageSize};
                                        // },
                                        striped: true,
                                        smartDisplay:false,
                                        cache: false,
                                        //pagination: true,
                                        pageList: [5,10],
                                        sidePagination: 'server',
                                        toolbar: "#addtool",
                                        columns: [
                                            {
                                                title: '档案类型',
                                                field:'typeName',
                                                formatter:paramsMatter
                                            },{
                                                field: 'dabh',
                                                title: '档案编号',
                                                formatter:paramsMatter
                                            },
                                            {
                                                title: '文件序号',
                                                field:'wjxh',
                                                formatter:paramsMatter
                                            },{
                                                field: 'clxxName',
                                                title: '材料名称',
                                                formatter:paramsMatter
                                            },{
                                                title: '操作',
                                                formatter: function (value, row, index) {
                                                    var aStr = '<a class="btn-primary btn" href="javascript:bj('+row.id+',\''+row.dabh+'\',\''+row.typeName+'\')">编辑</a>';
                                                    // aStr += '<a class="btn-success btn" href="javascript:tj('+row.id+')">添加</a>';
                                                    aStr += '<a class="btn-danger btn" href="javascript:sccl('+row.id+')">删除</a>';
                                                    return aStr;
                                                }
                                            }],
                                        responseHandler: function (res) {  //后台返回的结果
                                            if (res.code == "200") {
                                                var data = res.data;
                                                vue.$data.length2 = data.length;
                                                var NewData = [];
                                                for(i=0;i<data.length;i++){
                                                    var dd = data[i];
                                                    dd.roleName = roleId2RoleName(dd.roleId);
                                                    NewData.push(dd);
                                                }
                                                var data = {
                                                    total: res.data.total,
                                                    rows: NewData
                                                };
                                                return data;
                                            }
                                        }
                                    });
                                    $('#jydawsDiv').modal('show');
                                }else{
                                    kdtreeNum = 2;
                                    vue.$data.clxx.typeName = data.daxxRg.typeName;
                                    vue.$data.clxx.typeId = data.daxxRg.typeId;
                                    vue.$data.clxx.dabh = data.daxxRg.dabh;
                                    vue.$data.gdxx = data.daxxRg;
                                    var jyId = data.daxxRg.id;
                                    if(data.lxNodes[0].nodes == null){
                                        $('#tree').treeview({
                                            color: "#428bca",
                                            collapseIcon: "glyphicon glyphicon-minus",//可收缩的节点图标
                                            // nodeIcon: "glyphicon glyphicon-user",
                                            emptyIcon: "glyphicon glyphicon-folder-open",//设置列表树中没有子节点的节点的图标
                                            expandIcon: "glyphicon glyphicon-plus",  //设置列表上中有子节点的图标
                                            highlightSearchResults: true,//是否高亮搜索结果 默认true
                                            highlightSelected: true,     //是否选中高亮显示
                                            onhoverColor: "#f5f5f5",    //鼠标滑过的颜色
                                            levels: 0 ,// 设置初始化展开几级菜单 默认为2
                                            showBorder: true,                //是否显示边框
                                            data: data.lxNodes,
                                            //showCheckbox: true,
                                            multiSelect: false,
                                            // onNodeChecked: nodeChecked,
                                            // onNodeUnchecked: nodeUnchecked,
                                            onNodeSelected: function (event, data) {
                                                var id = data.id;
                                                kdid = data.id;
                                                id = decodeURIComponent(id);
                                                id =  id.toLowerCase();
                                                if(id.indexOf(".png")!=-1|| id.indexOf(".jpg")!=-1){
                                                    $('#tree2Img').attr('dataUrl', '/jy/api/getImg?path='+data.id+'&jyId='+Id);
                                                    viewer2 = new Viewer(document.getElementById('tree2'), {
                                                        inline: true,
                                                        url: 'dataUrl',
                                                        //navbar: false,
                                                        zIndexInline: 9999,
                                                        button: true,
                                                        backdrop: true,
                                                        navbar:false,
                                                        fullscreen:false,
                                                        toolbar: {
                                                            zoomIn: {
                                                                show: 1,
                                                                click: function () {
                                                                    viewer2.destroy();
                                                                }
                                                            },
                                                            zoomOut: 0,
                                                            oneToOne: 0,
                                                            reset: 0,
                                                            prev: {
                                                                show:1,
                                                                click: function(){
                                                                    viewer2.destroy();
                                                                    openpre(lxNodes,data.id,Id,2)
                                                                }

                                                            },
                                                            next: {
                                                                show:1,
                                                                click: function(){
                                                                    viewer2.destroy();
                                                                    opennext(lxNodes,data.id,Id,2)
                                                                }

                                                            },
                                                            rotateLeft: 1,
                                                            rotateRight: 1,
                                                            flipHorizontal: 0,
                                                            flipVertical: 0,
                                                        },
                                                    });
                                                }else if(id.indexOf(".pdf")!=-1){
                                                    var u = "/jy/api/getPdf/"+id+"/"+Id;
                                                    top.addTabs({
                                                        id: "63233",
                                                        text: "PDF浏览器",
                                                        icon: "fa fa-circle-o",
                                                        url: "/static/pdf/web/viewer.html?file="+u,
                                                        targetType: "iframe-tab",
                                                        close:true
                                                    });
                                                }

                                            }
                                        });
                                    }else {
                                        $('#tree').treeview({
                                            color: "#428bca",
                                            collapseIcon: "glyphicon glyphicon-minus",//可收缩的节点图标
                                            // nodeIcon: "glyphicon glyphicon-user",
                                            emptyIcon: "glyphicon glyphicon-file",//设置列表树中没有子节点的节点的图标
                                            expandIcon: "glyphicon glyphicon-plus",  //设置列表上中有子节点的图标
                                            highlightSearchResults: true,//是否高亮搜索结果 默认true
                                            highlightSelected: true,     //是否选中高亮显示
                                            onhoverColor: "#f5f5f5",    //鼠标滑过的颜色
                                            levels: 0 ,// 设置初始化展开几级菜单 默认为2
                                            showBorder: true,                //是否显示边框
                                            data: data.lxNodes,
                                            //showCheckbox: true,
                                            multiSelect: false,
                                            // onNodeChecked: nodeChecked,
                                            // onNodeUnchecked: nodeUnchecked,
                                            onNodeSelected: function (event, data) {
                                                var id = data.id;
                                                kdid = data.id;
                                                id = decodeURIComponent(id);
                                                id =  id.toLowerCase();
                                                if(id.indexOf(".png")!=-1|| id.indexOf(".jpg")!=-1){
                                                    $('#tree2Img').attr('dataUrl', '/jy/api/getImg?path='+data.id+'&jyId='+Id);
                                                    viewer2 = new Viewer(document.getElementById('tree2'), {
                                                        inline: true,
                                                        url: 'dataUrl',
                                                        //navbar: false,
                                                        zIndexInline: 9999,
                                                        button: true,
                                                        backdrop: true,
                                                        navbar:false,
                                                        fullscreen:false,
                                                        toolbar: {
                                                            zoomIn: {
                                                                show: 1,
                                                                click: function () {
                                                                    viewer2.destroy();
                                                                }
                                                            },
                                                            zoomOut: 0,
                                                            oneToOne: 0,
                                                            reset: 0,
                                                            prev: {
                                                                show:1,
                                                                click: function(){
                                                                    viewer2.destroy();
                                                                    openpre(lxNodes,data.id,Id,2)
                                                                }

                                                            },
                                                            next: {
                                                                show:1,
                                                                click: function(){
                                                                    viewer2.destroy();
                                                                    opennext(lxNodes,data.id,Id,2)
                                                                }

                                                            },
                                                            rotateLeft: 1,
                                                            rotateRight: 1,
                                                            flipHorizontal: 0,
                                                            flipVertical: 0,
                                                        },
                                                    });
                                                }else if(id.indexOf(".pdf")!=-1){
                                                    var u = "/jy/api/getPdf/"+id+"/"+Id;
                                                    top.addTabs({
                                                        id: "63233",
                                                        text: "PDF浏览器",
                                                        icon: "fa fa-circle-o",
                                                        url: "/static/pdf/web/viewer.html?file="+u,
                                                        targetType: "iframe-tab",
                                                        close:true
                                                    });
                                                }

                                            }
                                        });
                                    }
                                    $("#daTable").bootstrapTable('destroy');
                                    $('#daTable').bootstrapTable({
                                        url: '/dalr/api/queryDabhClxx?dabh='+dabh2,
                                        contentType: "application/json; charset=UTF-8",
                                        type: "GET",
                                        dataType: 'json',
                                        queryParamsType: "",
                                        //sortName : 'rgsj',
                                        //sortOrder : 'desc',
                                        singleSelect: true,
                                        paginationShowPageGo: true,
                                        pageNumber:1,
                                        pageSize:5,
                                        // queryParams: function (params) {
                                        //     return {'pageNum':params.pageNumber,'pageSize':params.pageSize};
                                        // },
                                        striped: true,
                                        smartDisplay:false,
                                        cache: false,
                                        //pagination: true,
                                        pageList: [5,10],
                                        sidePagination: 'server',
                                        toolbar: "#addtool",
                                        columns: [
                                            {
                                                title: '档案类型',
                                                field:'typeName',
                                                formatter:paramsMatter
                                            },{
                                                field: 'dabh',
                                                title: '档案编号',
                                                formatter:paramsMatter
                                            },
                                            {
                                                title: '文件序号',
                                                field:'wjxh',
                                                formatter:paramsMatter
                                            },{
                                                field: 'clxxName',
                                                title: '材料名称',
                                                formatter:paramsMatter
                                            },{
                                                title: '操作',
                                                formatter: function (value, row, index) {
                                                    var aStr = '<a class="btn-primary btn" href="javascript:bj('+row.id+',\''+row.dabh+'\',\''+row.typeName+'\')">编辑</a>';
                                                    // aStr += '<a class="btn-success btn" href="javascript:tj('+row.id+')">添加</a>';
                                                    aStr += '<a class="btn-danger btn" href="javascript:sccl('+row.id+')">删除</a>';
                                                    return aStr;
                                                }
                                            }],
                                        responseHandler: function (res) {  //后台返回的结果
                                            if (res.code == "200") {
                                                var data = res.data;
                                                vue.$data.length = data.length;
                                                var NewData = [];
                                                for(i=0;i<data.length;i++){
                                                    var dd = data[i];
                                                    dd.roleName = roleId2RoleName(dd.roleId);
                                                    NewData.push(dd);
                                                }
                                                var data = {
                                                    total: res.data.total,
                                                    rows: NewData
                                                };
                                                return data;
                                            }
                                        }
                                    });
                                    $('#jydaDiv').modal('show');
                                }
                            }else{
                                cxAlert(result.mess)
                            }
                        });
                    }
                });
            },
            //确认删除材料
            sureSccl:function(){
                var myMsg = cxLoad("删除中");
                $.get("/dalr/api/deletecl?id=" + scid, function (result) {
                    if (result.code == 200) {
                        layer.close(myMsg);
                        cxAlertOk("删除成功");
                        $('#scclModel').modal('hide');
                        $.get("/dalr/api/queryRgDaxx?dabh=" + dabh2, function (result) {
                            if (result.code == 200) {
                                var data = result.data;
                                var lxNodes = data.lxNodes;
                                kdLxNodes = data.lxNodes;
                                if(atype == 2){
                                    kdtreeNum = 3;
                                    var dah = data.daxxWsRg.dabh;
                                    var clxxName = data.daxxWsRg.typeName;
                                    vue.$data.clxx.typeName = data.daxxWsRg.typeName;
                                    vue.$data.clxx.typeId = data.daxxWsRg.typeId;
                                    vue.$data.clxx.dabh = data.daxxWsRg.dabh;
                                    vue.$data.wsxx = data.daxxWsRg;
                                    if(lxNodes[0].nodes == null){
                                        $('#tree5').treeview({
                                            color: "#428bca",
                                            collapseIcon: "glyphicon glyphicon-minus",//可收缩的节点图标
                                            // nodeIcon: "glyphicon glyphicon-user",
                                            emptyIcon: "glyphicon glyphicon-folder-open",//设置列表树中没有子节点的节点的图标
                                            expandIcon: "glyphicon glyphicon-plus",  //设置列表上中有子节点的图标
                                            highlightSearchResults: true,//是否高亮搜索结果 默认true
                                            highlightSelected: true,     //是否选中高亮显示
                                            onhoverColor: "#f5f5f5",    //鼠标滑过的颜色
                                            levels: 0 ,// 设置初始化展开几级菜单 默认为2
                                            showBorder: true,                //是否显示边框
                                            data: data.lxNodes,
                                            //showCheckbox: true,
                                            multiSelect: false,
                                            //onNodeChecked: nodeChecked,
                                            //onNodeUnchecked: nodeUnchecked,
                                            onNodeSelected: function (event, data) {
                                                var id = data.id;
                                                kdid = data.id;
                                                id = decodeURIComponent(id);
                                                id =  id.toLowerCase();

                                                if(id.indexOf(".png")!=-1|| id.indexOf(".jpg")!=-1){
                                                    $('#tree3Img').attr('dataUrl', '/jy/api/getImg?path='+data.id+'&jyId='+Id);
                                                    viewer = new Viewer(document.getElementById('tree3'), {
                                                        inline: true,
                                                        url: 'dataUrl',
                                                        //navbar: false,
                                                        zIndexInline: 9999,
                                                        button: true,
                                                        fullscreen:false,
                                                        backdrop: true,
                                                        keyboard:true,
                                                        navbar:false,
                                                        toolbar: {
                                                            zoomIn: {
                                                                show: 1,
                                                                click: function () {
                                                                    viewer.destroy();
                                                                }
                                                            },
                                                            zoomOut: 0,
                                                            oneToOne: 0,
                                                            reset: 0,
                                                            prev: {
                                                                show:1,
                                                                click: function(){
                                                                    viewer.destroy();
                                                                    openpre(lxNodes,data.id,Id,3)
                                                                }

                                                            },
                                                            next: {
                                                                show:1,
                                                                click: function(){
                                                                    viewer.destroy();
                                                                    opennext(lxNodes,data.id,Id,3)
                                                                }

                                                            },
                                                            rotateLeft: 1,
                                                            rotateRight: 1,
                                                            flipHorizontal: 0,
                                                            flipVertical: 0,
                                                        },
                                                    });
                                                }else if(id.indexOf(".pdf")!=-1){
                                                    var u = "/jy/api/getPdf/"+id+"/"+Id;
                                                    //var u = "/jy/api/getPdf/"+dah+"/"+clxxName+"/"+data.id+"/"+Id;

                                                    top.addTabs({
                                                        id: "63233",
                                                        text: "PDF浏览器",
                                                        icon: "fa fa-circle-o",
                                                        url: "/static/pdf/web/viewer.html?file="+u,
                                                        targetType: "iframe-tab",
                                                        close:true
                                                    });
                                                }
                                            }
                                        });
                                    }else {
                                        $('#tree5').treeview({
                                            color: "#428bca",
                                            collapseIcon: "glyphicon glyphicon-minus",//可收缩的节点图标
                                            // nodeIcon: "glyphicon glyphicon-user",
                                            emptyIcon: "glyphicon glyphicon-file",//设置列表树中没有子节点的节点的图标
                                            expandIcon: "glyphicon glyphicon-plus",  //设置列表上中有子节点的图标
                                            highlightSearchResults: true,//是否高亮搜索结果 默认true
                                            highlightSelected: true,     //是否选中高亮显示
                                            onhoverColor: "#f5f5f5",    //鼠标滑过的颜色
                                            levels: 0 ,// 设置初始化展开几级菜单 默认为2
                                            showBorder: true,                //是否显示边框
                                            data: data.lxNodes,
                                            //showCheckbox: true,
                                            multiSelect: false,
                                            //onNodeChecked: nodeChecked,
                                            //onNodeUnchecked: nodeUnchecked,
                                            onNodeSelected: function (event, data) {
                                                var id = data.id;
                                                kdid = data.id;
                                                id = decodeURIComponent(id);
                                                id =  id.toLowerCase();

                                                if(id.indexOf(".png")!=-1|| id.indexOf(".jpg")!=-1){
                                                    $('#tree3Img').attr('dataUrl', '/jy/api/getImg?path='+data.id+'&jyId='+Id);
                                                    viewer = new Viewer(document.getElementById('tree3'), {
                                                        inline: true,
                                                        url: 'dataUrl',
                                                        //navbar: false,
                                                        zIndexInline: 9999,
                                                        button: true,
                                                        fullscreen:false,
                                                        backdrop: true,
                                                        keyboard:true,
                                                        navbar:false,
                                                        toolbar: {
                                                            zoomIn: {
                                                                show: 1,
                                                                click: function () {
                                                                    viewer.destroy();
                                                                }
                                                            },
                                                            zoomOut: 0,
                                                            oneToOne: 0,
                                                            reset: 0,
                                                            prev: {
                                                                show:1,
                                                                click: function(){
                                                                    viewer.destroy();
                                                                    openpre(lxNodes,data.id,Id,3)
                                                                }

                                                            },
                                                            next: {
                                                                show:1,
                                                                click: function(){
                                                                    viewer.destroy();
                                                                    opennext(lxNodes,data.id,Id,3)
                                                                }

                                                            },
                                                            rotateLeft: 1,
                                                            rotateRight: 1,
                                                            flipHorizontal: 0,
                                                            flipVertical: 0,
                                                        },
                                                    });
                                                }else if(id.indexOf(".pdf")!=-1){
                                                    var u = "/jy/api/getPdf/"+id+"/"+Id;
                                                    //var u = "/jy/api/getPdf/"+dah+"/"+clxxName+"/"+data.id+"/"+Id;

                                                    top.addTabs({
                                                        id: "63233",
                                                        text: "PDF浏览器",
                                                        icon: "fa fa-circle-o",
                                                        url: "/static/pdf/web/viewer.html?file="+u,
                                                        targetType: "iframe-tab",
                                                        close:true
                                                    });
                                                }
                                            }
                                        });
                                    }

                                    $("#daTable2").bootstrapTable('destroy');
                                    $('#daTable2').bootstrapTable({
                                        url: '/dalr/api/queryDabhClxx?dabh='+vue.$data.clxx.dabh,
                                        contentType: "application/json; charset=UTF-8",
                                        type: "GET",
                                        dataType: 'json',
                                        queryParamsType: "",
                                        singleSelect: true,
                                        paginationShowPageGo: true,
                                        pageNumber:1,
                                        pageSize:5,
                                        // queryParams: function (params) {
                                        //     return {'pageNum':params.pageNumber,'pageSize':params.pageSize};
                                        // },
                                        striped: true,
                                        smartDisplay:false,
                                        cache: false,
                                        //pagination: true,
                                        pageList: [5,10],
                                        sidePagination: 'server',
                                        toolbar: "#addtool",
                                        columns: [
                                            {
                                                title: '档案类型',
                                                field:'typeName',
                                                formatter:paramsMatter
                                            },{
                                                field: 'dabh',
                                                title: '档案编号',
                                                formatter:paramsMatter
                                            },
                                            {
                                                title: '文件序号',
                                                field:'wjxh',
                                                formatter:paramsMatter
                                            },{
                                                field: 'clxxName',
                                                title: '材料名称',
                                                formatter:paramsMatter
                                            },{
                                                title: '操作',
                                                formatter: function (value, row, index) {
                                                    var aStr = '<a class="btn-primary btn" href="javascript:bj('+row.id+',\''+row.dabh+'\',\''+row.typeName+'\')">编辑</a>';
                                                    // aStr += '<a class="btn-success btn" href="javascript:tj('+row.id+')">添加</a>';
                                                    aStr += '<a class="btn-danger btn" href="javascript:sccl('+row.id+')">删除</a>';
                                                    return aStr;
                                                }
                                            }],
                                        responseHandler: function (res) {  //后台返回的结果
                                            if (res.code == "200") {
                                                var data = res.data;
                                                vue.$data.length2 = data.length;
                                                var NewData = [];
                                                for(i=0;i<data.length;i++){
                                                    var dd = data[i];
                                                    dd.roleName = roleId2RoleName(dd.roleId);
                                                    NewData.push(dd);
                                                }
                                                var data = {
                                                    total: res.data.total,
                                                    rows: NewData
                                                };
                                                return data;
                                            }
                                        }
                                    });
                                    $('#jydawsDiv').modal('show');
                                }else{
                                    kdtreeNum = 2;
                                    vue.$data.clxx.typeName = data.daxxRg.typeName;
                                    vue.$data.clxx.typeId = data.daxxRg.typeId;
                                    vue.$data.clxx.dabh = data.daxxRg.dabh;
                                    vue.$data.gdxx = data.daxxRg;
                                    var jyId = data.daxxRg.id;
                                    if(data.lxNodes[0].nodes == null){
                                        $('#tree').treeview({
                                            color: "#428bca",
                                            collapseIcon: "glyphicon glyphicon-minus",//可收缩的节点图标
                                            // nodeIcon: "glyphicon glyphicon-user",
                                            emptyIcon: "glyphicon glyphicon-folder-open",//设置列表树中没有子节点的节点的图标
                                            expandIcon: "glyphicon glyphicon-plus",  //设置列表上中有子节点的图标
                                            highlightSearchResults: true,//是否高亮搜索结果 默认true
                                            highlightSelected: true,     //是否选中高亮显示
                                            onhoverColor: "#f5f5f5",    //鼠标滑过的颜色
                                            levels: 0 ,// 设置初始化展开几级菜单 默认为2
                                            showBorder: true,                //是否显示边框
                                            data: data.lxNodes,
                                            //showCheckbox: true,
                                            multiSelect: false,
                                            // onNodeChecked: nodeChecked,
                                            // onNodeUnchecked: nodeUnchecked,
                                            onNodeSelected: function (event, data) {
                                                var id = data.id;
                                                kdid = data.id;
                                                id = decodeURIComponent(id);
                                                id =  id.toLowerCase();
                                                if(id.indexOf(".png")!=-1|| id.indexOf(".jpg")!=-1){
                                                    $('#tree2Img').attr('dataUrl', '/jy/api/getImg?path='+data.id+'&jyId='+Id);
                                                    viewer2 = new Viewer(document.getElementById('tree2'), {
                                                        inline: true,
                                                        url: 'dataUrl',
                                                        //navbar: false,
                                                        zIndexInline: 9999,
                                                        button: true,
                                                        backdrop: true,
                                                        navbar:false,
                                                        fullscreen:false,
                                                        toolbar: {
                                                            zoomIn: {
                                                                show: 1,
                                                                click: function () {
                                                                    viewer2.destroy();
                                                                }
                                                            },
                                                            zoomOut: 0,
                                                            oneToOne: 0,
                                                            reset: 0,
                                                            prev: {
                                                                show:1,
                                                                click: function(){
                                                                    viewer2.destroy();
                                                                    openpre(lxNodes,data.id,Id,2)
                                                                }

                                                            },
                                                            next: {
                                                                show:1,
                                                                click: function(){
                                                                    viewer2.destroy();
                                                                    opennext(lxNodes,data.id,Id,2)
                                                                }

                                                            },
                                                            rotateLeft: 1,
                                                            rotateRight: 1,
                                                            flipHorizontal: 0,
                                                            flipVertical: 0,
                                                        },
                                                    });
                                                }else if(id.indexOf(".pdf")!=-1){
                                                    var u = "/jy/api/getPdf/"+id+"/"+Id;
                                                    top.addTabs({
                                                        id: "63233",
                                                        text: "PDF浏览器",
                                                        icon: "fa fa-circle-o",
                                                        url: "/static/pdf/web/viewer.html?file="+u,
                                                        targetType: "iframe-tab",
                                                        close:true
                                                    });
                                                }

                                            }
                                        });
                                    }else {
                                        $('#tree').treeview({
                                            color: "#428bca",
                                            collapseIcon: "glyphicon glyphicon-minus",//可收缩的节点图标
                                            // nodeIcon: "glyphicon glyphicon-user",
                                            emptyIcon: "glyphicon glyphicon-file",//设置列表树中没有子节点的节点的图标
                                            expandIcon: "glyphicon glyphicon-plus",  //设置列表上中有子节点的图标
                                            highlightSearchResults: true,//是否高亮搜索结果 默认true
                                            highlightSelected: true,     //是否选中高亮显示
                                            onhoverColor: "#f5f5f5",    //鼠标滑过的颜色
                                            levels: 0 ,// 设置初始化展开几级菜单 默认为2
                                            showBorder: true,                //是否显示边框
                                            data: data.lxNodes,
                                            //showCheckbox: true,
                                            multiSelect: false,
                                            // onNodeChecked: nodeChecked,
                                            // onNodeUnchecked: nodeUnchecked,
                                            onNodeSelected: function (event, data) {
                                                var id = data.id;
                                                kdid = data.id;
                                                id = decodeURIComponent(id);
                                                id =  id.toLowerCase();
                                                if(id.indexOf(".png")!=-1|| id.indexOf(".jpg")!=-1){
                                                    $('#tree2Img').attr('dataUrl', '/jy/api/getImg?path='+data.id+'&jyId='+Id);
                                                    viewer2 = new Viewer(document.getElementById('tree2'), {
                                                        inline: true,
                                                        url: 'dataUrl',
                                                        //navbar: false,
                                                        zIndexInline: 9999,
                                                        button: true,
                                                        backdrop: true,
                                                        navbar:false,
                                                        fullscreen:false,
                                                        toolbar: {
                                                            zoomIn: {
                                                                show: 1,
                                                                click: function () {
                                                                    viewer2.destroy();
                                                                }
                                                            },
                                                            zoomOut: 0,
                                                            oneToOne: 0,
                                                            reset: 0,
                                                            prev: {
                                                                show:1,
                                                                click: function(){
                                                                    viewer2.destroy();
                                                                    openpre(lxNodes,data.id,Id,2)
                                                                }

                                                            },
                                                            next: {
                                                                show:1,
                                                                click: function(){
                                                                    viewer2.destroy();
                                                                    opennext(lxNodes,data.id,Id,2)
                                                                }

                                                            },
                                                            rotateLeft: 1,
                                                            rotateRight: 1,
                                                            flipHorizontal: 0,
                                                            flipVertical: 0,
                                                        },
                                                    });
                                                }else if(id.indexOf(".pdf")!=-1){
                                                    var u = "/jy/api/getPdf/"+id+"/"+Id;
                                                    top.addTabs({
                                                        id: "63233",
                                                        text: "PDF浏览器",
                                                        icon: "fa fa-circle-o",
                                                        url: "/static/pdf/web/viewer.html?file="+u,
                                                        targetType: "iframe-tab",
                                                        close:true
                                                    });
                                                }

                                            }
                                        });
                                    }

                                    $("#daTable").bootstrapTable('destroy');
                                    $('#daTable').bootstrapTable({
                                        url: '/dalr/api/queryDabhClxx?dabh='+dabh2,
                                        contentType: "application/json; charset=UTF-8",
                                        type: "GET",
                                        dataType: 'json',
                                        queryParamsType: "",
                                        //sortName : 'rgsj',
                                        //sortOrder : 'desc',
                                        singleSelect: true,
                                        paginationShowPageGo: true,
                                        pageNumber:1,
                                        pageSize:5,
                                        // queryParams: function (params) {
                                        //     return {'pageNum':params.pageNumber,'pageSize':params.pageSize};
                                        // },
                                        striped: true,
                                        smartDisplay:false,
                                        cache: false,
                                        //pagination: true,
                                        pageList: [5,10],
                                        sidePagination: 'server',
                                        toolbar: "#addtool",
                                        columns: [
                                            {
                                                title: '档案类型',
                                                field:'typeName',
                                                formatter:paramsMatter
                                            },{
                                                field: 'dabh',
                                                title: '档案编号',
                                                formatter:paramsMatter
                                            },
                                            {
                                                title: '文件序号',
                                                field:'wjxh',
                                                formatter:paramsMatter
                                            },{
                                                field: 'clxxName',
                                                title: '材料名称',
                                                formatter:paramsMatter
                                            },{
                                                title: '操作',
                                                formatter: function (value, row, index) {
                                                    var aStr = '<a class="btn-primary btn" href="javascript:bj('+row.id+',\''+row.dabh+'\',\''+row.typeName+'\')">编辑</a>';
                                                    // aStr += '<a class="btn-success btn" href="javascript:tj('+row.id+')">添加</a>';
                                                    aStr += '<a class="btn-danger btn" href="javascript:sccl('+row.id+')">删除</a>';
                                                    return aStr;
                                                }
                                            }],
                                        responseHandler: function (res) {  //后台返回的结果
                                            if (res.code == "200") {
                                                var data = res.data;
                                                vue.$data.length = data.length;
                                                var NewData = [];
                                                for(i=0;i<data.length;i++){
                                                    var dd = data[i];
                                                    dd.roleName = roleId2RoleName(dd.roleId);
                                                    NewData.push(dd);
                                                }
                                                var data = {
                                                    total: res.data.total,
                                                    rows: NewData
                                                };
                                                return data;
                                            }
                                        }
                                    });
                                    $('#jydaDiv').modal('show');
                                }
                            }else{
                                cxAlert(result.mess)
                            }
                        });
                        $("#daTable").bootstrapTable('destroy');
                        $('#daTable').bootstrapTable({
                            url: '/dalr/api/queryDabhClxx?dabh='+dabh2,
                            contentType: "application/json; charset=UTF-8",
                            type: "GET",
                            dataType: 'json',
                            queryParamsType: "",
                            singleSelect: true,
                            paginationShowPageGo: true,
                            pageNumber:1,
                            pageSize:5,
                            // queryParams: function (params) {
                            //     return {'pageNum':params.pageNumber,'pageSize':params.pageSize};
                            // },
                            striped: true,
                            smartDisplay:false,
                            cache: false,
                            //pagination: true,
                            pageList: [5,10],
                            sidePagination: 'server',
                            toolbar: "#addtool",
                            columns: [
                                {
                                    title: '档案类型',
                                    field:'typeName',
                                    formatter:paramsMatter
                                },{
                                    field: 'dabh',
                                    title: '档案编号',
                                    formatter:paramsMatter
                                },
                                {
                                    title: '文件序号',
                                    field:'wjxh',
                                    formatter:paramsMatter
                                },{
                                    field: 'clxxName',
                                    title: '材料名称',
                                    formatter:paramsMatter
                                },{
                                    title: '操作',
                                    formatter: function (value, row, index) {
                                        var aStr = '<a class="btn-primary btn" href="javascript:bj('+row.id+',\''+row.dabh+'\',\''+row.typeName+'\')">编辑</a>';
                                        // aStr += '<a class="btn-success btn" href="javascript:tj('+row.id+')">添加</a>';
                                        aStr += '<a class="btn-danger btn" href="javascript:sccl('+row.id+')">删除</a>';
                                        return aStr;
                                    }
                                }],
                            responseHandler: function (res) {  //后台返回的结果
                                if (res.code == "200") {
                                    var data = res.data;
                                    vue.$data.length = data.length;
                                    var NewData = [];
                                    for(i=0;i<data.length;i++){
                                        var dd = data[i];
                                        dd.roleName = roleId2RoleName(dd.roleId);
                                        NewData.push(dd);
                                    }
                                    var data = {
                                        total: res.data.total,
                                        rows: NewData
                                    };
                                    return data;
                                }
                            }
                        });
                        $("#daTable2").bootstrapTable('destroy');
                        $('#daTable2').bootstrapTable({
                            url: '/dalr/api/queryDabhClxx?dabh='+dabh2,
                            contentType: "application/json; charset=UTF-8",
                            type: "GET",
                            dataType: 'json',
                            queryParamsType: "",
                            singleSelect: true,
                            paginationShowPageGo: true,
                            pageNumber:1,
                            pageSize:5,
                            // queryParams: function (params) {
                            //     return {'pageNum':params.pageNumber,'pageSize':params.pageSize};
                            // },
                            striped: true,
                            smartDisplay:false,
                            cache: false,
                            //pagination: true,
                            pageList: [5,10],
                            sidePagination: 'server',
                            toolbar: "#addtool",
                            columns: [
                                {
                                    title: '档案类型',
                                    field:'typeName',
                                    formatter:paramsMatter
                                },{
                                    field: 'dabh',
                                    title: '档案编号',
                                    formatter:paramsMatter
                                },
                                {
                                    title: '文件序号',
                                    field:'wjxh',
                                    formatter:paramsMatter
                                },{
                                    field: 'clxxName',
                                    title: '材料名称',
                                    formatter:paramsMatter
                                },{
                                    title: '操作',
                                    formatter: function (value, row, index) {
                                        var aStr = '<a class="btn-primary btn" href="javascript:bj('+row.id+',\''+row.dabh+'\',\''+row.typeName+'\')">编辑</a>';
                                        // aStr += '<a class="btn-success btn" href="javascript:tj('+row.id+')">添加</a>';
                                        aStr += '<a class="btn-danger btn" href="javascript:sccl('+row.id+')">删除</a>';
                                        return aStr;
                                    }
                                }],
                            responseHandler: function (res) {  //后台返回的结果
                                if (res.code == "200") {
                                    var data = res.data;
                                    vue.$data.length2 = data.length;
                                    var NewData = [];
                                    for(i=0;i<data.length;i++){
                                        var dd = data[i];
                                        dd.roleName = roleId2RoleName(dd.roleId);
                                        NewData.push(dd);
                                    }
                                    var data = {
                                        total: res.data.total,
                                        rows: NewData
                                    };
                                    return data;
                                }
                            }
                        });
                    }
                });
            },
            //取消删除材料
            cancelcl:function(){
                $('#scclModel').modal('hide');
            },
            //判断改变的档案编号是否与档案类型一致
            pd:function(){
                var dalx;
                var bh = this.gdxx.dabh;
                var datas = bh.split("-");
                var datas2 = dabh2.split("-");
                var code = datas[0];
                var code2 = datas2[0];
                code = datas[0].substring(0,code.length-4);
                code2 = datas2[0].substring(0,code2.length-4);
                if(code != code2){
                  this.gdxx.dabh = dabh2;
                }
            },
            pd2:function(){
                var dalx;
                var bh = this.wsxx.dabh;
                var datas = bh.split("-");
                var datas2 = dabh2.split("-");
                var code = datas[0];
                var code2 = datas2[0];
                code = datas[0].substring(0,code.length-4);
                code2 = datas2[0].substring(0,code2.length-4);
                if(code != code2){
                    this.wsxx.dabh = dabh2;
                }
            },
            //确认选择审批人
            sureSelect:function(){
                var userId = this.shr;
                var myMsg = cxLoad("提交中");
                $.get("/dalr/api/submitRg?id=" + this.id+"&userId="+userId, function (result) {
                    if (result.code == 200) {
                        layer.close(myMsg);
                        cxAlertOk("提交成功");
                        $('#shrModal').modal('hide');
                        $("#userTable").bootstrapTable('destroy');
                        $('#userTable').bootstrapTable({
                            url: '/dalr/api/queryDRg',
                            contentType: "application/json; charset=UTF-8",
                            type: "GET",
                            dataType: 'json',
                            queryParamsType: "",
                            sortName : 'rgsj',
                            sortOrder : 'desc',
                            singleSelect: true,
                            paginationShowPageGo: true,
                            pageNumber:1,
                            pageSize:5,
                            queryParams: function (params) {
                                return {'pageNum':params.pageNumber,'pageSize':params.pageSize,'sort':params.sortOrder};
                            },
                            striped: true,
                            smartDisplay:false,
                            cache: false,
                            pagination: true,
                            pageList: [5,10],
                            sidePagination: 'server',
                            toolbar: "#addtool",
                            columns: [{
                                field: 'dabh',
                                title: '档案编号',
                                formatter:paramsMatter
                            },{
                                field: 'ajtm',
                                title: '案卷题名',
                                formatter:paramsMatter
                            }, {
                                field: 'dtslbh',
                                title: '大厅受理编号',
                                formatter:paramsMatter
                            }, {
                                field: 'jsdw',
                                title: '建设单位',
                                formatter:paramsMatter
                            },{
                                title: '操作',
                                formatter: function (value, row, index) {
                                    var aStr = '<a class="czBtn" href="javascript:tjsh('+row.id+','+row.shrId+')">入馆</a>';
                                    aStr += '<a class="czBtn" href="javascript:surezf('+row.id+')">作废</a>';
                                    return aStr;
                                }
                            }],
                            responseHandler: function (res) {  //后台返回的结果
                                if (res.code == "200") {
                                    var data = res.data.data;
                                    var NewData = [];
                                    for(i=0;i<data.length;i++){
                                        var dd = data[i];
                                        dd.roleName = roleId2RoleName(dd.roleId);
                                        NewData.push(dd);
                                    }
                                    var data = {
                                        total: res.data.total,
                                        rows: NewData
                                    };
                                    return data;
                                }
                            }
                        });
                    }
                });
            },
            closeshr:function(){
                $('#shrModal').modal('hide');
            },
            close:function(){
              $('#filesModal').modal('hide');
              // if(atype ==1){
              //     $('#jydaDiv').modal('show');
              //
              // }else{
              //     $('#jydawsDiv').modal('show');
              // }
                //$('#tjclDiv').modal('show');
            },
            close2:function(){
                $('#filesModal2').modal('hide');
                $('#bjDiv').modal('show');
            },
            //编辑材料
            bjcl:function(){
                var clxxRg = this.clxx;
                var bootstrapValidator1 = $("#bjclForm").data('bootstrapValidator');
                bootstrapValidator1.validate();
                if(bootstrapValidator1.isValid()) {
                    this.zzbjcl = true;
                    var myMsg = cxLoad("提交中");
                    this.$http.post('/dalr/api/updatecl', clxxRg).then(function (result) {
                        this.zzbjcl = false;
                        var data = result.body;
                        if (data.code == 200) {
                            layer.close(myMsg);
                            dabh = this.clxx.dabh;
                            typeName = this.clxx.typeName;
                            typeId = this.clxx.typeId;
                            cxAlertOk("提交成功");
                            $("#bjclForm").data('bootstrapValidator').resetForm();//清除当前验证的关键之处
                            $('#bjDiv').modal('hide');
                            Object.keys(this.clxx).forEach(key => (this.clxx[key] = null));
                            this.parentLx = null;
                            this.clxx.dabh = dabh;
                            this.clxx.typeName = typeName;
                            this.clxx.typeId = typeId;
                            $("#daTable").bootstrapTable('destroy');
                            $('#daTable').bootstrapTable({
                                url: '/dalr/api/queryDabhClxx?dabh=' + this.clxx.dabh,
                                contentType: "application/json; charset=UTF-8",
                                type: "GET",
                                dataType: 'json',
                                queryParamsType: "",
                                singleSelect: true,
                                paginationShowPageGo: true,
                                pageNumber: 1,
                                pageSize: 5,
                                // queryParams: function (params) {
                                //     return {'pageNum': params.pageNumber, 'pageSize': params.pageSize};
                                // },
                                striped: true,
                                smartDisplay: false,
                                cache: false,
                                //pagination: true,
                                pageList: [5, 10],
                                sidePagination: 'server',
                                toolbar: "#addtool",
                                columns: [
                                    {
                                        title: '档案类型',
                                        field: 'typeName',
                                        formatter:paramsMatter
                                    }, {
                                        field: 'dabh',
                                        title: '档案编号',
                                        formatter:paramsMatter
                                    },
                                    {
                                        title: '文件序号',
                                        field: 'wjxh',
                                        formatter:paramsMatter
                                    }, {
                                        field: 'clxxName',
                                        title: '材料名称',
                                        formatter:paramsMatter
                                    }, {
                                        title: '操作',
                                        formatter: function (value, row, index) {
                                            var aStr = '<a class="btn-primary btn" href="javascript:bj('+row.id+',\''+row.dabh+'\',\''+row.typeName+'\')">编辑</a>';
                                            // aStr += '<a class="btn-success btn" href="javascript:tj('+row.id+')">添加</a>';
                                            aStr += '<a class="btn-danger btn" href="javascript:sccl(' + row.id + ')">删除</a>';
                                            return aStr;
                                        }
                                    }],
                                responseHandler: function (res) {  //后台返回的结果
                                    if (res.code == "200") {

                                        var data = res.data;
                                        vue.$data.length = data.length;
                                        var NewData = [];
                                        for (i = 0; i < data.length; i++) {
                                            var dd = data[i];
                                            dd.roleName = roleId2RoleName(dd.roleId);
                                            NewData.push(dd);
                                        }
                                        var data = {
                                            total: res.data.total,
                                            rows: NewData
                                        };
                                        return data;
                                    }
                                }
                            });
                            $("#daTable2").bootstrapTable('destroy');
                            $('#daTable2').bootstrapTable({
                                url: '/dalr/api/queryDabhClxx?dabh=' + this.clxx.dabh,
                                contentType: "application/json; charset=UTF-8",
                                type: "GET",
                                dataType: 'json',
                                queryParamsType: "",
                                singleSelect: true,
                                paginationShowPageGo: true,
                                pageNumber: 1,
                                pageSize: 5,
                                // queryParams: function (params) {
                                //     return {'pageNum': params.pageNumber, 'pageSize': params.pageSize};
                                // },
                                striped: true,
                                smartDisplay: false,
                                cache: false,
                                //pagination: true,
                                pageList: [5, 10],
                                sidePagination: 'server',
                                toolbar: "#addtool",
                                columns: [
                                    {
                                        title: '档案类型',
                                        field: 'typeName',
                                        formatter:paramsMatter
                                    }, {
                                        field: 'dabh',
                                        title: '档案编号',
                                        formatter:paramsMatter
                                    },
                                    {
                                        title: '文件序号',
                                        field: 'wjxh',
                                        formatter:paramsMatter
                                    }, {
                                        field: 'clxxName',
                                        title: '材料名称',
                                        formatter:paramsMatter
                                    }, {
                                        title: '操作',
                                        formatter: function (value, row, index) {
                                            var aStr = '<a class="btn-primary btn" href="javascript:bj('+row.id+',\''+row.dabh+'\',\''+row.typeName+'\')">编辑</a>';
                                            // aStr += '<a class="btn-success btn" href="javascript:tj('+row.id+')">添加</a>';
                                            aStr += '<a class="btn-danger btn" href="javascript:sccl(' + row.id + ')">删除</a>';
                                            return aStr;
                                        }
                                    }],
                                responseHandler: function (res) {  //后台返回的结果
                                    if (res.code == "200") {

                                        var data = res.data;
                                        vue.$data.length2 = data.length;
                                        var NewData = [];
                                        for (i = 0; i < data.length; i++) {
                                            var dd = data[i];
                                            dd.roleName = roleId2RoleName(dd.roleId);
                                            NewData.push(dd);
                                        }
                                        var data = {
                                            total: res.data.total,
                                            rows: NewData
                                        };
                                        return data;
                                    }
                                }
                            });
                            //this.dalxText=null;
                            //top.refreshTab();
                        } else {
                            layer.close(myMsg);
                            cxAlert(data.mess);
                            dabh = this.clxx.dabh;
                            $("#bjclForm").data('bootstrapValidator').resetForm();//清除当前验证的关键之处
                            Object.keys(this.clxx).forEach(key => (this.clxx[key] = null));
                            this.parentLx = null;
                            this.dalx = null;
                            this.clxx.dabh = dabh;
                            this.clxx.typeName = typeName;
                            this.clxx.typeId = typeId;
                        }
                    })
                }
            },
            doUploadFiles:function(){
                this.dalxText = this.clxx.typeName;
                dabh = this.clxx.dabh;
                dalx = this.dalxText;
                //this.clxx.typeName = dalx;
                //this.clxx.typeId = typeId;
                if(this.dalxText == null || this.clxx.dabh == null){
                    cxAlert("请先将档案类型和档案编号填写完整");
                    return;
                }
                if(this.files == null || this.files.length==0){
                    cxAlert("请选择要上传的文件夹");
                    return;
                }
                var data = new FormData();
                data.append('lb',this.dalxText);
                data.append('dah', this.clxx.dabh);
                for (var i = 0; i < this.files.length; i++) {
                    data.append('files', this.files[i])
                }
                var myMsg = cxLoad("上传中");
                this.$http.post('/api/upload/upLoadClxx', data, {
                    headers: {
                        'Content-Type': 'multipart/form-data',
                    },
                }).then(res => {
                    var data = res.body;
                    if(data.code == "200"){
                        layer.close(myMsg);
                        typeName = this.clxx.typeName;
                        typeId = this.clxx.typeId;
                        cxAlertOk("文件夹上传成功");
                        $('#filesModal').modal('hide');
                        $.get("/dalr/api/queryRgDaxx?dabh=" + this.clxx.dabh, function (result) {
                            if (result.code == 200) {
                                var data = result.data;
                                var lxNodes = data.lxNodes;
                                kdLxNodes = data.lxNodes;
                                if(type == 2){
                                    kdtreeNum = 3;
                                    var dah = data.daxxWsRg.dabh;
                                    var clxxName = data.daxxWsRg.typeName;
                                    vue.$data.clxx.typeName = data.daxxWsRg.typeName;
                                    vue.$data.clxx.typeId = data.daxxWsRg.typeId;
                                    vue.$data.clxx.dabh = data.daxxWsRg.dabh;
                                    vue.$data.wsxx = data.daxxWsRg;
                                    if(data.lxNodes[0].nodes == null){
                                        $('#tree5').treeview({
                                            color: "#428bca",
                                            collapseIcon: "glyphicon glyphicon-minus",//可收缩的节点图标
                                            // nodeIcon: "glyphicon glyphicon-user",
                                            emptyIcon: "glyphicon glyphicon-folder-open",//设置列表树中没有子节点的节点的图标
                                            expandIcon: "glyphicon glyphicon-plus",  //设置列表上中有子节点的图标
                                            highlightSearchResults: true,//是否高亮搜索结果 默认true
                                            highlightSelected: true,     //是否选中高亮显示
                                            onhoverColor: "#f5f5f5",    //鼠标滑过的颜色
                                            levels: 0 ,// 设置初始化展开几级菜单 默认为2
                                            showBorder: true,                //是否显示边框
                                            data: data.lxNodes,
                                            //showCheckbox: true,
                                            multiSelect: false,
                                            //onNodeChecked: nodeChecked,
                                            //onNodeUnchecked: nodeUnchecked,
                                            onNodeSelected: function (event, data) {
                                                var id = data.id;
                                                kdid = data.id;
                                                id = decodeURIComponent(id);
                                                id =  id.toLowerCase();

                                                if(id.indexOf(".png")!=-1|| id.indexOf(".jpg")!=-1){
                                                    $('#tree3Img').attr('dataUrl', '/jy/api/getImg?path='+data.id+'&jyId='+Id);
                                                    viewer = new Viewer(document.getElementById('tree3'), {
                                                        inline: true,
                                                        url: 'dataUrl',
                                                        //navbar: false,
                                                        zIndexInline: 9999,
                                                        button: true,
                                                        fullscreen:false,
                                                        backdrop: true,
                                                        keyboard:true,
                                                        navbar:false,
                                                        toolbar: {
                                                            zoomIn: {
                                                                show: 1,
                                                                click: function () {
                                                                    viewer.destroy();
                                                                }
                                                            },
                                                            zoomOut: 0,
                                                            oneToOne: 0,
                                                            reset: 0,
                                                            prev: {
                                                                show:1,
                                                                click: function(){
                                                                    viewer.destroy();
                                                                    openpre(lxNodes,data.id,Id,3)
                                                                }

                                                            },
                                                            next: {
                                                                show:1,
                                                                click: function(){
                                                                    viewer.destroy();
                                                                    opennext(lxNodes,data.id,Id,3)
                                                                }

                                                            },
                                                            rotateLeft: 1,
                                                            rotateRight: 1,
                                                            flipHorizontal: 0,
                                                            flipVertical: 0,
                                                        },
                                                    });
                                                }else if(id.indexOf(".pdf")!=-1){
                                                    var u = "/jy/api/getPdf/"+id+"/"+Id;
                                                    //var u = "/jy/api/getPdf/"+dah+"/"+clxxName+"/"+data.id+"/"+Id;

                                                    top.addTabs({
                                                        id: "63233",
                                                        text: "PDF浏览器",
                                                        icon: "fa fa-circle-o",
                                                        url: "/static/pdf/web/viewer.html?file="+u,
                                                        targetType: "iframe-tab",
                                                        close:true
                                                    });
                                                }
                                            }
                                        });
                                    }else {
                                        $('#tree5').treeview({
                                            color: "#428bca",
                                            collapseIcon: "glyphicon glyphicon-minus",//可收缩的节点图标
                                            // nodeIcon: "glyphicon glyphicon-user",
                                            emptyIcon: "glyphicon glyphicon-file",//设置列表树中没有子节点的节点的图标
                                            expandIcon: "glyphicon glyphicon-plus",  //设置列表上中有子节点的图标
                                            highlightSearchResults: true,//是否高亮搜索结果 默认true
                                            highlightSelected: true,     //是否选中高亮显示
                                            onhoverColor: "#f5f5f5",    //鼠标滑过的颜色
                                            levels: 0 ,// 设置初始化展开几级菜单 默认为2
                                            showBorder: true,                //是否显示边框
                                            data: data.lxNodes,
                                            //showCheckbox: true,
                                            multiSelect: false,
                                            //onNodeChecked: nodeChecked,
                                            //onNodeUnchecked: nodeUnchecked,
                                            onNodeSelected: function (event, data) {
                                                var id = data.id;
                                                kdid = data.id;
                                                id = decodeURIComponent(id);
                                                id =  id.toLowerCase();

                                                if(id.indexOf(".png")!=-1|| id.indexOf(".jpg")!=-1){
                                                    $('#tree3Img').attr('dataUrl', '/jy/api/getImg?path='+data.id+'&jyId='+Id);
                                                    viewer = new Viewer(document.getElementById('tree3'), {
                                                        inline: true,
                                                        url: 'dataUrl',
                                                        //navbar: false,
                                                        zIndexInline: 9999,
                                                        button: true,
                                                        fullscreen:false,
                                                        backdrop: true,
                                                        keyboard:true,
                                                        navbar:false,
                                                        toolbar: {
                                                            zoomIn: {
                                                                show: 1,
                                                                click: function () {
                                                                    viewer.destroy();
                                                                }
                                                            },
                                                            zoomOut: 0,
                                                            oneToOne: 0,
                                                            reset: 0,
                                                            prev: {
                                                                show:1,
                                                                click: function(){
                                                                    viewer.destroy();
                                                                    openpre(lxNodes,data.id,Id,3)
                                                                }

                                                            },
                                                            next: {
                                                                show:1,
                                                                click: function(){
                                                                    viewer.destroy();
                                                                    opennext(lxNodes,data.id,Id,3)
                                                                }

                                                            },
                                                            rotateLeft: 1,
                                                            rotateRight: 1,
                                                            flipHorizontal: 0,
                                                            flipVertical: 0,
                                                        },
                                                    });
                                                }else if(id.indexOf(".pdf")!=-1){
                                                    var u = "/jy/api/getPdf/"+id+"/"+Id;
                                                    //var u = "/jy/api/getPdf/"+dah+"/"+clxxName+"/"+data.id+"/"+Id;

                                                    top.addTabs({
                                                        id: "63233",
                                                        text: "PDF浏览器",
                                                        icon: "fa fa-circle-o",
                                                        url: "/static/pdf/web/viewer.html?file="+u,
                                                        targetType: "iframe-tab",
                                                        close:true
                                                    });
                                                }
                                            }
                                        });
                                    }
                                    $('#jydawsDiv').modal('show');
                                }else{
                                    kdtreeNum = 2;
                                    vue.$data.clxx.typeName = data.daxxRg.typeName;
                                    vue.$data.clxx.typeId = data.daxxRg.typeId;
                                    vue.$data.clxx.dabh = data.daxxRg.dabh;
                                    vue.$data.gdxx = data.daxxRg;
                                    var jyId = data.daxxRg.id;
                                    if(data.lxNodes[0].nodes == null){
                                        $('#tree').treeview({
                                            color: "#428bca",
                                            collapseIcon: "glyphicon glyphicon-minus",//可收缩的节点图标
                                            // nodeIcon: "glyphicon glyphicon-user",
                                            emptyIcon: "glyphicon glyphicon-folder-open",//设置列表树中没有子节点的节点的图标
                                            expandIcon: "glyphicon glyphicon-plus",  //设置列表上中有子节点的图标
                                            highlightSearchResults: true,//是否高亮搜索结果 默认true
                                            highlightSelected: true,     //是否选中高亮显示
                                            onhoverColor: "#f5f5f5",    //鼠标滑过的颜色
                                            levels: 0 ,// 设置初始化展开几级菜单 默认为2
                                            showBorder: true,                //是否显示边框
                                            data: data.lxNodes,
                                            //showCheckbox: true,
                                            multiSelect: false,
                                            // onNodeChecked: nodeChecked,
                                            // onNodeUnchecked: nodeUnchecked,
                                            onNodeSelected: function (event, data) {
                                                var id = data.id;
                                                kdid = data.id;
                                                id = decodeURIComponent(id);
                                                id =  id.toLowerCase();
                                                if(id.indexOf(".png")!=-1|| id.indexOf(".jpg")!=-1){
                                                    $('#tree2Img').attr('dataUrl', '/jy/api/getImg?path='+data.id+'&jyId='+Id);
                                                    viewer2 = new Viewer(document.getElementById('tree2'), {
                                                        inline: true,
                                                        url: 'dataUrl',
                                                        //navbar: false,
                                                        zIndexInline: 9999,
                                                        button: true,
                                                        backdrop: true,
                                                        navbar:false,
                                                        fullscreen:false,
                                                        toolbar: {
                                                            zoomIn: {
                                                                show: 1,
                                                                click: function () {
                                                                    viewer2.destroy();
                                                                }
                                                            },
                                                            zoomOut: 0,
                                                            oneToOne: 0,
                                                            reset: 0,
                                                            prev: {
                                                                show:1,
                                                                click: function(){
                                                                    viewer2.destroy();
                                                                    openpre(lxNodes,data.id,Id,2)
                                                                }

                                                            },
                                                            next: {
                                                                show:1,
                                                                click: function(){
                                                                    viewer2.destroy();
                                                                    opennext(lxNodes,data.id,Id,2)
                                                                }

                                                            },
                                                            rotateLeft: 1,
                                                            rotateRight: 1,
                                                            flipHorizontal: 0,
                                                            flipVertical: 0,
                                                        },
                                                    });
                                                }else if(id.indexOf(".pdf")!=-1){
                                                    var u = "/jy/api/getPdf/"+id+"/"+Id;
                                                    top.addTabs({
                                                        id: "63233",
                                                        text: "PDF浏览器",
                                                        icon: "fa fa-circle-o",
                                                        url: "/static/pdf/web/viewer.html?file="+u,
                                                        targetType: "iframe-tab",
                                                        close:true
                                                    });
                                                }

                                            }
                                        });
                                    }else {
                                        $('#tree').treeview({
                                            color: "#428bca",
                                            collapseIcon: "glyphicon glyphicon-minus",//可收缩的节点图标
                                            // nodeIcon: "glyphicon glyphicon-user",
                                            emptyIcon: "glyphicon glyphicon-file",//设置列表树中没有子节点的节点的图标
                                            expandIcon: "glyphicon glyphicon-plus",  //设置列表上中有子节点的图标
                                            highlightSearchResults: true,//是否高亮搜索结果 默认true
                                            highlightSelected: true,     //是否选中高亮显示
                                            onhoverColor: "#f5f5f5",    //鼠标滑过的颜色
                                            levels: 0 ,// 设置初始化展开几级菜单 默认为2
                                            showBorder: true,                //是否显示边框
                                            data: data.lxNodes,
                                            //showCheckbox: true,
                                            multiSelect: false,
                                            // onNodeChecked: nodeChecked,
                                            // onNodeUnchecked: nodeUnchecked,
                                            onNodeSelected: function (event, data) {
                                                var id = data.id;
                                                kdid = data.id;
                                                id = decodeURIComponent(id);
                                                id =  id.toLowerCase();
                                                if(id.indexOf(".png")!=-1|| id.indexOf(".jpg")!=-1){
                                                    $('#tree2Img').attr('dataUrl', '/jy/api/getImg?path='+data.id+'&jyId='+Id);
                                                    viewer2 = new Viewer(document.getElementById('tree2'), {
                                                        inline: true,
                                                        url: 'dataUrl',
                                                        //navbar: false,
                                                        zIndexInline: 9999,
                                                        button: true,
                                                        backdrop: true,
                                                        navbar:false,
                                                        fullscreen:false,
                                                        toolbar: {
                                                            zoomIn: {
                                                                show: 1,
                                                                click: function () {
                                                                    viewer2.destroy();
                                                                }
                                                            },
                                                            zoomOut: 0,
                                                            oneToOne: 0,
                                                            reset: 0,
                                                            prev: {
                                                                show:1,
                                                                click: function(){
                                                                    viewer2.destroy();
                                                                    openpre(lxNodes,data.id,Id,2)
                                                                }

                                                            },
                                                            next: {
                                                                show:1,
                                                                click: function(){
                                                                    viewer2.destroy();
                                                                    opennext(lxNodes,data.id,Id,2)
                                                                }

                                                            },
                                                            rotateLeft: 1,
                                                            rotateRight: 1,
                                                            flipHorizontal: 0,
                                                            flipVertical: 0,
                                                        },
                                                    });
                                                }else if(id.indexOf(".pdf")!=-1){
                                                    var u = "/jy/api/getPdf/"+id+"/"+Id;
                                                    top.addTabs({
                                                        id: "63233",
                                                        text: "PDF浏览器",
                                                        icon: "fa fa-circle-o",
                                                        url: "/static/pdf/web/viewer.html?file="+u,
                                                        targetType: "iframe-tab",
                                                        close:true
                                                    });
                                                }

                                            }
                                        });
                                    }

                                    $('#jydaDiv').modal('show');
                                }
                            }else{
                                cxAlert(result.mess)
                            }
                        });
                        $("#tjclForm").data('bootstrapValidator').resetForm();//清除当前验证的关键之处
                        //$("#bjclForm").data('bootstrapValidator').resetForm();//清除当前验证的关键之处
                        Object.keys(this.clxx).forEach(key => (this.clxx[key] = null));
                        this.parentLx=null;
                        //this.dalx=null;
                        //this.dalxText = null;
                        this.clxx.dabh = dabh;
                        this.clxx.typeName = typeName;
                        this.clxx.typeId = typeId;
                        $("#clTable").bootstrapTable('destroy');
                        $('#clTable').bootstrapTable({
                            url: '/dalr/api/queryDabhClxx?dabh='+this.clxx.dabh,
                            contentType: "application/json; charset=UTF-8",
                            type: "GET",
                            dataType: 'json',
                            queryParamsType: "",
                            singleSelect: true,
                            paginationShowPageGo: true,
                            pageNumber:1,
                            pageSize:8,
                            queryParams: function (params) {
                                return {'pageNum':params.pageNumber,'pageSize':params.pageSize};
                            },
                            striped: true,
                            smartDisplay:false,
                            cache: false,
                            //pagination: true,
                            //pageList: [8],
                            sidePagination: 'server',
                            toolbar: "#addtool",
                            columns: [
                                {
                                    title: '档案类型',
                                    field:'typeName',
                                    formatter:paramsMatter
                                },{
                                    field: 'dabh',
                                    title: '档案编号',
                                    formatter:paramsMatter
                                },
                                {
                                    title: '文件序号',
                                    field:'wjxh',
                                    formatter:paramsMatter
                                },{
                                    field: 'clxxName',
                                    title: '材料名称',
                                    formatter:paramsMatter
                                }],
                            responseHandler: function (res) {  //后台返回的结果
                                if (res.code == "200") {
                                    var data = res.data;
                                    var NewData = [];
                                    for(i=0;i<data.length;i++){
                                        var dd = data[i];
                                        NewData.push(dd);
                                    }
                                    var data = {
                                        total: res.data.total,
                                        rows: NewData
                                    };
                                    return data;
                                }
                            }
                        });
                    }else{
                        layer.close(myMsg);
                        cxAlert(data.mess);
                    }

                }).catch(err => {
                    layer.close(myMsg);
                    console.log(err);
                });
            },
            filesChange:function(){
                this.upLoadFiles = [];
                this.files = [];
                this.scsmyj.yjmc=[];
                var temp = [];
                this.upLoadFiles = [];
                var fileUpload = this.$refs.fileUpload;
                var file = fileUpload.files;
                var tempFile=[];
                for(i = 0; i < file.length; i++){
                    var f = file[i];
                    tempFile.push(f);
                    // if(f.name.toLowerCase().indexOf(".jpg") != -1 || f.name.toLowerCase().indexOf(".png") != -1 || f.name.toLowerCase().indexOf(".bmp") != -1 || f.name.toLowerCase().indexOf(".pdf") != -1){
                    //
                    // }
                }
                this.files = tempFile;
                //this.gdxx.zys = tempFile.length;
                for (i = 0; i < tempFile.length; i++) {
                    var f = tempFile[i];
                    var path = f.webkitRelativePath;
                    data={};
                    data['id']=i+1;
                    var lastPath = path.lastIndexOf("/");
                    var lastPath2= path.substring(0,lastPath).lastIndexOf("/");
                    if(lastPath2){
                        data['yjmc'] = path.substring(lastPath2+1,lastPath);
                        temp.push(path.substring(lastPath2+1,lastPath));
                    }else {
                        temp.push(path.substring(0,path.lastIndexOf("/")));
                    }
                    //this.clxx.dabh = path.substring(0,path.indexOf("/"));
                    data['wjmc'] = f.name;
                    this.upLoadFiles.push(data);
                    this.scsmyj.yjmc = data['yjmc'];
                }
                this.scsmyj.yjmc = temp;
                //this.doUploadFiles();
            },
            doUploadFiles2:function(){
                this.dalxText = this.clxx.typeName;
                dabh = this.clxx.dabh;
                dalx = this.dalxText;
                //this.clxx.typeName = dalx;
                //this.clxx.typeId = typeId;
                if(this.dalxText == null || this.clxx.dabh == null){
                    cxAlert("请先将档案类型和档案编号填写完整");
                    return;
                }
                if(this.files == null || this.files.length==0){
                    cxAlert("请选择要上传的文件夹");
                    return;
                }
                var data = new FormData();
                data.append('lb',this.dalxText);
                data.append('dah', this.clxx.dabh);
                for (var i = 0; i < this.files.length; i++) {
                    data.append('files', this.files[i])
                }
                //$('#shangchuan').modal('show');
                var myMsg = cxLoad("上传中");
                this.$http.post('/api/upload/upLoadClxx', data, {
                    headers: {
                        'Content-Type': 'multipart/form-data',
                    },
                }).then(res => {
                    var data = res.body;
                    if(data.code == "200"){
                        layer.close(myMsg);
                        typeName = this.clxx.typeName;
                        typeId = this.clxx.typeId;
                        cxAlertOk("文件夹上传成功");
                        $('#filesModal2').modal('hide');
                        $.get("/dalr/api/queryRgDaxx?dabh=" + this.clxx.dabh, function (result) {
                            if (result.code == 200) {
                                var data = result.data;
                                var lxNodes = data.lxNodes;
                                kdLxNodes = data.lxNodes;
                                if(atype == 2){
                                    kdtreeNum = 3;
                                    var dah = data.daxxWsRg.dabh;
                                    var clxxName = data.daxxWsRg.typeName;
                                    vue.$data.clxx.typeName = data.daxxWsRg.typeName;
                                    vue.$data.clxx.typeId = data.daxxWsRg.typeId;
                                    vue.$data.clxx.dabh = data.daxxWsRg.dabh;
                                    vue.$data.wsxx = data.daxxWsRg;
                                    if(data.lxNodes[0].nodes == null){
                                        $('#tree5').treeview({
                                            color: "#428bca",
                                            collapseIcon: "glyphicon glyphicon-minus",//可收缩的节点图标
                                            // nodeIcon: "glyphicon glyphicon-user",
                                            emptyIcon: "glyphicon glyphicon-folder-open",//设置列表树中没有子节点的节点的图标
                                            expandIcon: "glyphicon glyphicon-plus",  //设置列表上中有子节点的图标
                                            highlightSearchResults: true,//是否高亮搜索结果 默认true
                                            highlightSelected: true,     //是否选中高亮显示
                                            onhoverColor: "#f5f5f5",    //鼠标滑过的颜色
                                            levels: 0 ,// 设置初始化展开几级菜单 默认为2
                                            showBorder: true,                //是否显示边框
                                            data: data.lxNodes,
                                            //showCheckbox: true,
                                            multiSelect: false,
                                            //onNodeChecked: nodeChecked,
                                            //onNodeUnchecked: nodeUnchecked,
                                            onNodeSelected: function (event, data) {
                                                var id = data.id;
                                                kdid = data.id;
                                                id = decodeURIComponent(id);
                                                id =  id.toLowerCase();

                                                if(id.indexOf(".png")!=-1|| id.indexOf(".jpg")!=-1){
                                                    $('#tree3Img').attr('dataUrl', '/jy/api/getImg?path='+data.id+'&jyId='+Id);
                                                    viewer = new Viewer(document.getElementById('tree3'), {
                                                        inline: true,
                                                        url: 'dataUrl',
                                                        //navbar: false,
                                                        zIndexInline: 9999,
                                                        button: true,
                                                        fullscreen:false,
                                                        backdrop: true,
                                                        keyboard:true,
                                                        navbar:false,
                                                        toolbar: {
                                                            zoomIn: {
                                                                show: 1,
                                                                click: function () {
                                                                    viewer.destroy();
                                                                }
                                                            },
                                                            zoomOut: 0,
                                                            oneToOne: 0,
                                                            reset: 0,
                                                            prev: {
                                                                show:1,
                                                                click: function(){
                                                                    viewer.destroy();
                                                                    openpre(lxNodes,data.id,Id,3)
                                                                }

                                                            },
                                                            next: {
                                                                show:1,
                                                                click: function(){
                                                                    viewer.destroy();
                                                                    opennext(lxNodes,data.id,Id,3)
                                                                }

                                                            },
                                                            rotateLeft: 1,
                                                            rotateRight: 1,
                                                            flipHorizontal: 0,
                                                            flipVertical: 0,
                                                        },
                                                    });
                                                }else if(id.indexOf(".pdf")!=-1){
                                                    var u = "/jy/api/getPdf/"+id+"/"+Id;
                                                    //var u = "/jy/api/getPdf/"+dah+"/"+clxxName+"/"+data.id+"/"+Id;

                                                    top.addTabs({
                                                        id: "63233",
                                                        text: "PDF浏览器",
                                                        icon: "fa fa-circle-o",
                                                        url: "/static/pdf/web/viewer.html?file="+u,
                                                        targetType: "iframe-tab",
                                                        close:true
                                                    });
                                                }
                                            }
                                        });
                                    }else {
                                        $('#tree5').treeview({
                                            color: "#428bca",
                                            collapseIcon: "glyphicon glyphicon-minus",//可收缩的节点图标
                                            // nodeIcon: "glyphicon glyphicon-user",
                                            emptyIcon: "glyphicon glyphicon-file",//设置列表树中没有子节点的节点的图标
                                            expandIcon: "glyphicon glyphicon-plus",  //设置列表上中有子节点的图标
                                            highlightSearchResults: true,//是否高亮搜索结果 默认true
                                            highlightSelected: true,     //是否选中高亮显示
                                            onhoverColor: "#f5f5f5",    //鼠标滑过的颜色
                                            levels: 0 ,// 设置初始化展开几级菜单 默认为2
                                            showBorder: true,                //是否显示边框
                                            data: data.lxNodes,
                                            //showCheckbox: true,
                                            multiSelect: false,
                                            //onNodeChecked: nodeChecked,
                                            //onNodeUnchecked: nodeUnchecked,
                                            onNodeSelected: function (event, data) {
                                                var id = data.id;
                                                kdid = data.id;
                                                id = decodeURIComponent(id);
                                                id =  id.toLowerCase();

                                                if(id.indexOf(".png")!=-1|| id.indexOf(".jpg")!=-1){
                                                    $('#tree3Img').attr('dataUrl', '/jy/api/getImg?path='+data.id+'&jyId='+Id);
                                                    viewer = new Viewer(document.getElementById('tree3'), {
                                                        inline: true,
                                                        url: 'dataUrl',
                                                        //navbar: false,
                                                        zIndexInline: 9999,
                                                        button: true,
                                                        fullscreen:false,
                                                        backdrop: true,
                                                        keyboard:true,
                                                        navbar:false,
                                                        toolbar: {
                                                            zoomIn: {
                                                                show: 1,
                                                                click: function () {
                                                                    viewer.destroy();
                                                                }
                                                            },
                                                            zoomOut: 0,
                                                            oneToOne: 0,
                                                            reset: 0,
                                                            prev: {
                                                                show:1,
                                                                click: function(){
                                                                    viewer.destroy();
                                                                    openpre(lxNodes,data.id,Id,3)
                                                                }

                                                            },
                                                            next: {
                                                                show:1,
                                                                click: function(){
                                                                    viewer.destroy();
                                                                    opennext(lxNodes,data.id,Id,3)
                                                                }

                                                            },
                                                            rotateLeft: 1,
                                                            rotateRight: 1,
                                                            flipHorizontal: 0,
                                                            flipVertical: 0,
                                                        },
                                                    });
                                                }else if(id.indexOf(".pdf")!=-1){
                                                    var u = "/jy/api/getPdf/"+id+"/"+Id;
                                                    //var u = "/jy/api/getPdf/"+dah+"/"+clxxName+"/"+data.id+"/"+Id;

                                                    top.addTabs({
                                                        id: "63233",
                                                        text: "PDF浏览器",
                                                        icon: "fa fa-circle-o",
                                                        url: "/static/pdf/web/viewer.html?file="+u,
                                                        targetType: "iframe-tab",
                                                        close:true
                                                    });
                                                }
                                            }
                                        });
                                    }

                                    $('#jydawsDiv').modal('show');
                                }else{
                                    kdtreeNum = 2;
                                    vue.$data.clxx.typeName = data.daxxRg.typeName;
                                    vue.$data.clxx.typeId = data.daxxRg.typeId;
                                    vue.$data.clxx.dabh = data.daxxRg.dabh;
                                    vue.$data.gdxx = data.daxxRg;
                                    var jyId = data.daxxRg.id;
                                    if(data.lxNodes[0].nodes == null){
                                        $('#tree').treeview({
                                            color: "#428bca",
                                            collapseIcon: "glyphicon glyphicon-minus",//可收缩的节点图标
                                            // nodeIcon: "glyphicon glyphicon-user",
                                            emptyIcon: "glyphicon glyphicon-folder-open",//设置列表树中没有子节点的节点的图标
                                            expandIcon: "glyphicon glyphicon-plus",  //设置列表上中有子节点的图标
                                            highlightSearchResults: true,//是否高亮搜索结果 默认true
                                            highlightSelected: true,     //是否选中高亮显示
                                            onhoverColor: "#f5f5f5",    //鼠标滑过的颜色
                                            levels: 0 ,// 设置初始化展开几级菜单 默认为2
                                            showBorder: true,                //是否显示边框
                                            data: data.lxNodes,
                                            //showCheckbox: true,
                                            multiSelect: false,
                                            // onNodeChecked: nodeChecked,
                                            // onNodeUnchecked: nodeUnchecked,
                                            onNodeSelected: function (event, data) {
                                                var id = data.id;
                                                kdid = data.id;
                                                id = decodeURIComponent(id);
                                                id =  id.toLowerCase();
                                                if(id.indexOf(".png")!=-1|| id.indexOf(".jpg")!=-1){
                                                    $('#tree2Img').attr('dataUrl', '/jy/api/getImg?path='+data.id+'&jyId='+Id);
                                                    viewer2 = new Viewer(document.getElementById('tree2'), {
                                                        inline: true,
                                                        url: 'dataUrl',
                                                        //navbar: false,
                                                        zIndexInline: 9999,
                                                        button: true,
                                                        backdrop: true,
                                                        navbar:false,
                                                        fullscreen:false,
                                                        toolbar: {
                                                            zoomIn: {
                                                                show: 1,
                                                                click: function () {
                                                                    viewer2.destroy();
                                                                }
                                                            },
                                                            zoomOut: 0,
                                                            oneToOne: 0,
                                                            reset: 0,
                                                            prev: {
                                                                show:1,
                                                                click: function(){
                                                                    viewer2.destroy();
                                                                    openpre(lxNodes,data.id,Id,2)
                                                                }

                                                            },
                                                            next: {
                                                                show:1,
                                                                click: function(){
                                                                    viewer2.destroy();
                                                                    opennext(lxNodes,data.id,Id,2)
                                                                }

                                                            },
                                                            rotateLeft: 1,
                                                            rotateRight: 1,
                                                            flipHorizontal: 0,
                                                            flipVertical: 0,
                                                        },
                                                    });
                                                }else if(id.indexOf(".pdf")!=-1){
                                                    var u = "/jy/api/getPdf/"+id+"/"+Id;
                                                    top.addTabs({
                                                        id: "63233",
                                                        text: "PDF浏览器",
                                                        icon: "fa fa-circle-o",
                                                        url: "/static/pdf/web/viewer.html?file="+u,
                                                        targetType: "iframe-tab",
                                                        close:true
                                                    });
                                                }

                                            }
                                        });
                                    }else {
                                        $('#tree').treeview({
                                            color: "#428bca",
                                            collapseIcon: "glyphicon glyphicon-minus",//可收缩的节点图标
                                            // nodeIcon: "glyphicon glyphicon-user",
                                            emptyIcon: "glyphicon glyphicon-file",//设置列表树中没有子节点的节点的图标
                                            expandIcon: "glyphicon glyphicon-plus",  //设置列表上中有子节点的图标
                                            highlightSearchResults: true,//是否高亮搜索结果 默认true
                                            highlightSelected: true,     //是否选中高亮显示
                                            onhoverColor: "#f5f5f5",    //鼠标滑过的颜色
                                            levels: 0 ,// 设置初始化展开几级菜单 默认为2
                                            showBorder: true,                //是否显示边框
                                            data: data.lxNodes,
                                            //showCheckbox: true,
                                            multiSelect: false,
                                            // onNodeChecked: nodeChecked,
                                            // onNodeUnchecked: nodeUnchecked,
                                            onNodeSelected: function (event, data) {
                                                var id = data.id;
                                                kdid = data.id;
                                                id = decodeURIComponent(id);
                                                id =  id.toLowerCase();
                                                if(id.indexOf(".png")!=-1|| id.indexOf(".jpg")!=-1){
                                                    $('#tree2Img').attr('dataUrl', '/jy/api/getImg?path='+data.id+'&jyId='+Id);
                                                    viewer2 = new Viewer(document.getElementById('tree2'), {
                                                        inline: true,
                                                        url: 'dataUrl',
                                                        //navbar: false,
                                                        zIndexInline: 9999,
                                                        button: true,
                                                        backdrop: true,
                                                        navbar:false,
                                                        fullscreen:false,
                                                        toolbar: {
                                                            zoomIn: {
                                                                show: 1,
                                                                click: function () {
                                                                    viewer2.destroy();
                                                                }
                                                            },
                                                            zoomOut: 0,
                                                            oneToOne: 0,
                                                            reset: 0,
                                                            prev: {
                                                                show:1,
                                                                click: function(){
                                                                    viewer2.destroy();
                                                                    openpre(lxNodes,data.id,Id,2)
                                                                }

                                                            },
                                                            next: {
                                                                show:1,
                                                                click: function(){
                                                                    viewer2.destroy();
                                                                    opennext(lxNodes,data.id,Id,2)
                                                                }

                                                            },
                                                            rotateLeft: 1,
                                                            rotateRight: 1,
                                                            flipHorizontal: 0,
                                                            flipVertical: 0,
                                                        },
                                                    });
                                                }else if(id.indexOf(".pdf")!=-1){
                                                    var u = "/jy/api/getPdf/"+id+"/"+Id;
                                                    top.addTabs({
                                                        id: "63233",
                                                        text: "PDF浏览器",
                                                        icon: "fa fa-circle-o",
                                                        url: "/static/pdf/web/viewer.html?file="+u,
                                                        targetType: "iframe-tab",
                                                        close:true
                                                    });
                                                }

                                            }
                                        });
                                    }

                                    $('#jydaDiv').modal('show');
                                }
                            }else{
                                cxAlert(result.mess)
                            }
                        });
                         $("#bjDiv").modal('show');
                        //$("#tjclForm").data('bootstrapValidator').resetForm();//清除当前验证的关键之处
                        $("#bjclForm").data('bootstrapValidator').resetForm();//清除当前验证的关键之处
                        Object.keys(this.clxx).forEach(key => (this.clxx[key] = null));
                        this.parentLx=null;
                        //this.dalx=null;
                        //this.dalxText = null;
                        this.clxx.dabh = dabh;
                        this.clxx.typeName = typeName;
                        this.clxx.typeId = typeId;
                        $("#clTable").bootstrapTable('destroy');
                        $('#clTable').bootstrapTable({
                            url: '/dalr/api/queryDabhClxx?dabh='+this.clxx.dabh,
                            contentType: "application/json; charset=UTF-8",
                            type: "GET",
                            dataType: 'json',
                            queryParamsType: "",
                            singleSelect: true,
                            paginationShowPageGo: true,
                            pageNumber:1,
                            pageSize:8,
                            queryParams: function (params) {
                                return {'pageNum':params.pageNumber,'pageSize':params.pageSize};
                            },
                            striped: true,
                            smartDisplay:false,
                            cache: false,
                            //pagination: true,
                            //pageList: [8],
                            sidePagination: 'server',
                            toolbar: "#addtool",
                            columns: [
                                {
                                    title: '档案类型',
                                    field:'typeName',
                                    formatter:paramsMatter
                                },{
                                    field: 'dabh',
                                    title: '档案编号',
                                    formatter:paramsMatter
                                },
                                {
                                    title: '文件序号',
                                    field:'wjxh',
                                    formatter:paramsMatter
                                },{
                                    field: 'clxxName',
                                    title: '材料名称',
                                    formatter:paramsMatter
                                }],
                            responseHandler: function (res) {  //后台返回的结果
                                if (res.code == "200") {
                                    var data = res.data;
                                    var NewData = [];
                                    for(i=0;i<data.length;i++){
                                        var dd = data[i];
                                        NewData.push(dd);
                                    }
                                    var data = {
                                        total: res.data.total,
                                        rows: NewData
                                    };
                                    return data;
                                }
                            }
                        });
                    }else{
                        layer.close(myMsg);
                        cxAlert(data.mess);
                    }

                }).catch(err => {
                    layer.close(myMsg);
                    console.log(err);
                });
            },
            filesChange2:function(){
                this.upLoadFiles = [];
                this.files = [];
                this.scsmyj.yjmc=[];
                var temp = [];
                this.upLoadFiles = [];
                var fileUpload = this.$refs.fileUpload2;
                var file = fileUpload2.files;
                var tempFile=[];
                for(i = 0; i < file.length; i++){
                    var f = file[i];
                    tempFile.push(f);
                    // if(f.name.toLowerCase().indexOf(".jpg") != -1 || f.name.toLowerCase().indexOf(".png") != -1 || f.name.toLowerCase().indexOf(".bmp") != -1 || f.name.toLowerCase().indexOf(".pdf") != -1){
                    //
                    // }
                }
                this.files = tempFile;
                //this.gdxx.zys = tempFile.length;
                for (i = 0; i < tempFile.length; i++) {
                    var f = tempFile[i];
                    var path = f.webkitRelativePath;
                    data={};
                    data['id']=i+1;
                    var lastPath = path.lastIndexOf("/");
                    var lastPath2= path.substring(0,lastPath).lastIndexOf("/");
                    if(lastPath2){
                        data['yjmc'] = path.substring(lastPath2+1,lastPath);
                        temp.push(path.substring(lastPath2+1,lastPath));
                    }else {
                        temp.push(path.substring(0,path.lastIndexOf("/")));
                    }
                    //this.clxx.dabh = path.substring(0,path.indexOf("/"));
                    data['wjmc'] = f.name;
                    this.upLoadFiles.push(data);
                    this.scsmyj.yjmc = data['yjmc'];
                }
                this.scsmyj.yjmc = temp;
                //this.doUploadFiles();
            },
            //上传文件夹
            scFiles:function(){
                // $("#tjclDiv").modal('hide');
                // if(type == 1){
                //     $("#jydaDiv").modal('hide');
                // }else {
                //     $("#jydawsDiv").modal('hide');
                // }
                $("#filesModal").modal('show');
            },
            scFiles2:function(){
                // $("#tjclDiv").modal('hide');
                // if(type == 1){
                //     $("#jydaDiv").modal('hide');
                // }else {
                //     $("#jydawsDiv").modal('hide');
                // }
                $("#filesModal2").modal('show');
            },
            //材料提交
            tjcl:function(){
                var clxxRg = this.clxx;
                // dabh = this.clxx.dabh;
                // dalx = this.dalxText;
                // this.clxx.typeName = atypeName;
                // this.clxx.typeId = atypeId;
                var bootstrapValidator1 = $("#tjclForm").data('bootstrapValidator');
                bootstrapValidator1.validate();
                if(bootstrapValidator1.isValid()) {
                    this.zztjcl = true;
                    var myMsg = cxLoad("提交中");
                    this.$http.post('/dalr/api/clbr', this.clxx).then(function (result) {
                        this.zztjcl = false;
                        var data = result.body;
                        if (data.code == 200) {
                            layer.close(myMsg);
                            dabh = this.clxx.dabh;
                            typeName = this.clxx.typeName;
                            typeId = this.clxx.typeId;
                            cxAlertOk("提交成功");
                            $("#tjclForm").data('bootstrapValidator').resetForm();//清除当前验证的关键之处
                            Object.keys(this.clxx).forEach(key => (this.clxx[key] = null));
                            this.parentLx = null;
                            this.clxx.dabh = dabh;
                            this.clxx.typeName = typeName;
                            this.clxx.typeId = typeId;
                            $("#daTable").bootstrapTable('destroy');
                            $('#daTable').bootstrapTable({
                                url: '/dalr/api/queryDabhClxx?dabh=' + this.clxx.dabh,
                                contentType: "application/json; charset=UTF-8",
                                type: "GET",
                                dataType: 'json',
                                queryParamsType: "",
                                singleSelect: true,
                                paginationShowPageGo: true,
                                pageNumber: 1,
                                pageSize: 5,
                                // queryParams: function (params) {
                                //     return {'pageNum': params.pageNumber, 'pageSize': params.pageSize};
                                // },
                                striped: true,
                                smartDisplay: false,
                                cache: false,
                                //pagination: true,
                                pageList: [5, 10],
                                sidePagination: 'server',
                                toolbar: "#addtool",
                                columns: [
                                    {
                                        title: '档案类型',
                                        field: 'typeName',
                                        formatter:paramsMatter
                                    }, {
                                        field: 'dabh',
                                        title: '档案编号',
                                        formatter:paramsMatter
                                    },
                                    {
                                        title: '文件序号',
                                        field: 'wjxh',
                                        formatter:paramsMatter
                                    }, {
                                        field: 'clxxName',
                                        title: '材料名称',
                                        formatter:paramsMatter
                                    }, {
                                        title: '操作',
                                        formatter: function (value, row, index) {
                                            var aStr = '<a class="btn-primary btn" href="javascript:bj('+row.id+',\''+row.dabh+'\',\''+row.typeName+'\')">编辑</a>';
                                            // aStr += '<a class="btn-success btn" href="javascript:tj('+row.id+')">添加</a>';
                                            aStr += '<a class="btn-danger btn" href="javascript:sccl(' + row.id + ')">删除</a>';
                                            return aStr;
                                        }
                                    }],
                                responseHandler: function (res) {  //后台返回的结果
                                    if (res.code == "200") {

                                        var data = res.data;
                                        vue.$data.length = data.length;
                                        var NewData = [];
                                        for (i = 0; i < data.length; i++) {
                                            var dd = data[i];
                                            dd.roleName = roleId2RoleName(dd.roleId);
                                            NewData.push(dd);
                                        }
                                        var data = {
                                            total: res.data.total,
                                            rows: NewData
                                        };
                                        return data;
                                    }
                                }
                            });
                            $("#daTable2").bootstrapTable('destroy');
                            $('#daTable2').bootstrapTable({
                                url: '/dalr/api/queryDabhClxx?dabh=' + this.clxx.dabh,
                                contentType: "application/json; charset=UTF-8",
                                type: "GET",
                                dataType: 'json',
                                queryParamsType: "",
                                singleSelect: true,
                                paginationShowPageGo: true,
                                pageNumber: 1,
                                pageSize: 5,
                                // queryParams: function (params) {
                                //     return {'pageNum': params.pageNumber, 'pageSize': params.pageSize};
                                // },
                                striped: true,
                                smartDisplay: false,
                                cache: false,
                                //pagination: true,
                                pageList: [5, 10],
                                sidePagination: 'server',
                                toolbar: "#addtool",
                                columns: [
                                    {
                                        title: '档案类型',
                                        field: 'typeName',
                                        formatter:paramsMatter
                                    }, {
                                        field: 'dabh',
                                        title: '档案编号',
                                        formatter:paramsMatter
                                    },
                                    {
                                        title: '文件序号',
                                        field: 'wjxh',
                                        formatter:paramsMatter
                                    }, {
                                        field: 'clxxName',
                                        title: '材料名称',
                                        formatter:paramsMatter
                                    }, {
                                        title: '操作',
                                        formatter: function (value, row, index) {
                                            var aStr = '<a class="btn-primary btn" href="javascript:bj('+row.id+',\''+row.dabh+'\',\''+row.typeName+'\')">编辑</a>';
                                            // aStr += '<a class="btn-success btn" href="javascript:tj('+row.id+')">添加</a>';
                                            aStr += '<a class="btn-danger btn" href="javascript:sccl(' + row.id + ')">删除</a>';
                                            return aStr;
                                        }
                                    }],
                                responseHandler: function (res) {  //后台返回的结果
                                    if (res.code == "200") {

                                        var data = res.data;
                                        vue.$data.length2 = data.length;
                                        var NewData = [];
                                        for (i = 0; i < data.length; i++) {
                                            var dd = data[i];
                                            dd.roleName = roleId2RoleName(dd.roleId);
                                            NewData.push(dd);
                                        }
                                        var data = {
                                            total: res.data.total,
                                            rows: NewData
                                        };
                                        return data;
                                    }
                                }
                            });
                            //this.dalxText=null;
                            //top.refreshTab();
                        } else {
                            layer.close(myMsg);
                            cxAlert(data.mess);
                            dabh = this.clxx.dabh;
                            $("#tjclForm").data('bootstrapValidator').resetForm();//清除当前验证的关键之处
                            Object.keys(this.clxx).forEach(key => (this.clxx[key] = null));
                            this.parentLx = null;
                            this.dalx = null;
                            this.clxx.dabh = dabh;
                            this.clxx.typeName = typeName;
                            this.clxx.typeId = typeId;
                        }
                    })
                }
            },
            //添加
            tj:function(){
                $('#tjclDiv').modal('show');
            },
            //更新科技档案
            updateDa:function(){
                var bootstrapValidator1 = $("#gdxxForm").data('bootstrapValidator');
                bootstrapValidator1.validate();
                if(bootstrapValidator1.isValid()) {
                    var myMsg = cxLoad("更新中");
                    var daxxRg = vue.$data.gdxx;
                    $.ajax({
                        url: '/dalr/api/updateda',
                        type: 'post',
                        dataType: 'JSON',
                        data: JSON.stringify(daxxRg),
                        cache: false,
                        contentType: 'application/json; charset=UTF-8',
                        processData: false,
                        //dataType: "json",
                        async: false,
                        success: function (result) {
                            if (result.code == 200) {
                                layer.close(myMsg);
                                cxAlertOk("更新成功");
                                $("#gdxxForm").data('bootstrapValidator').resetForm();//清除当前验证的关键之处
                            } else {
                                layer.close(myMsg);
                                cxAlert(result.mess);
                                $("#gdxxForm").data('bootstrapValidator').resetForm();//清除当前验证的关键之处
                            }
                        }
                    });
                }
            },
            //删除文书档案
            // deleteWs:function(){
            //
            // },
            //更新文书
            updateWs:function(){
                var bootstrapValidator1 = $("#wsxxForm").data('bootstrapValidator');
                bootstrapValidator1.validate();
                if(bootstrapValidator1.isValid()) {
                    var myMsg = cxLoad("更新中");
                    var daxxWsRg = vue.$data.wsxx;
                    $.ajax({
                        url: '/dalr/api/updatedaWs',
                        type: 'post',
                        dataType: 'JSON',
                        data: JSON.stringify(daxxWsRg),
                        cache: false,
                        contentType: 'application/json; charset=UTF-8',
                        processData: false,
                        //dataType: "json",
                        async: false,
                        success: function (result) {
                            if (result.code == 200) {
                                layer.close(myMsg);
                                cxAlertOk("更新成功");
                                $("#wsxxForm").data('bootstrapValidator').resetForm();//清除当前验证的关键之处
                            } else {
                                layer.close(myMsg);
                                cxAlert(result.mess);
                                $("#wsxxForm").data('bootstrapValidator').resetForm();//清除当前验证的关键之处
                            }
                        }
                    });
                }
            },
            addUser: function () {
                var bootstrapValidator1 = $("#userForm").data('bootstrapValidator');
                bootstrapValidator1.validate();
                if(bootstrapValidator1.isValid()){
                    var myMsg = cxLoad("添加中");
                    this.$http.post('/addUser',this.newUser,{emulateJSON:true}).then( function (result) {
                        var data = result.body;
                        if(data.code == 200){
                            layer.close(myMsg);
                            cxAlertOk("添加成功");
                            $("#userForm").data('bootstrapValidator').resetForm();//清除当前验证的关键之处
                            $('#addUserModel').modal('hide');
                            $("#userTable").bootstrapTable('refresh');
                            this.newUser.name=null;
                            this.newUser.dw=null;
                            this.newUser.phone=null;
                            this.newUser.roleId=null;
                            this.newUser.account=null;
                            this.newUser.password=null;
                        }else{
                            layer.close(myMsg);
                            cxAlert(data.mess);
                        }
                    })
                }
            }
        },
        created: function () {
        },
        mounted: function () {
            var that = this;
            $("#userTable").bootstrapTable('destroy');
            $('#userTable').bootstrapTable({
                url: '/dalr/api/queryDRg',
                contentType: "application/json; charset=UTF-8",
                type: "GET",
                dataType: 'json',
                queryParamsType: "",
                sortName : 'rgsj',
                sortOrder : 'desc',
                singleSelect: true,
                paginationShowPageGo: true,
                pageNumber:1,
                pageSize:5,
                queryParams: function (params) {
                    return {'pageNum':params.pageNumber,'pageSize':params.pageSize,'sort':params.sortOrder};
                },
                striped: true,
                smartDisplay:false,
                cache: false,
                pagination: true,
                pageList: [5,10],
                sidePagination: 'server',
                toolbar: "#addtool",
                columns: [{
                    field: 'dabh',
                    title: '档案编号',
                    formatter:paramsMatter
                },{
                    field: 'ajtm',
                    title: '案卷题名',
                    formatter:paramsMatter
                }, {
                    field: 'dtslbh',
                    title: '大厅受理编号',
                    formatter:paramsMatter
                }, {
                    field: 'jsdw',
                    title: '建设单位',
                    formatter:paramsMatter
                },{
                    title: '操作',
                    formatter: function (value, row, index) {
                        var aStr = '<a class="czBtn" href="javascript:tjsh('+row.id+','+row.shrId+')">入馆</a>';
                        aStr += '<a class="czBtn" href="javascript:surezf('+row.id+')">作废</a>';
                        return aStr;
                    }
                }],
                responseHandler: function (res) {  //后台返回的结果
                    if (res.code == "200") {
                        var data = res.data.data;
                        var NewData = [];
                        for(i=0;i<data.length;i++){
                            var dd = data[i];
                            dd.roleName = roleId2RoleName(dd.roleId);
                            NewData.push(dd);
                        }
                        var data = {
                            total: res.data.total,
                            rows: NewData
                        };
                        return data;
                    }
                }
            });
            $('#tjclForm').bootstrapValidator({
                feedbackIcons: {
                    valid: 'glyphicon glyphicon-ok',
                    invalid: 'glyphicon glyphicon-remove',
                    validating: 'glyphicon glyphicon-refresh'
                },
                fields: {
                    wjxh: {
                        validators: {
                            notEmpty: {
                                message: '文件序号不能为空'
                            },
                            stringLength: {
                                min: 3,
                                max: 3,
                                message: '文件序号必须为3位数字'
                            }
                        }
                    },
                    year: {
                        validators: {
                            digits: {
                                message: '年份只能包含数字。'
                            },
                            stringLength: {
                                min: 4,
                                max: 4,
                                message: '年份必须为4位数字'
                            }
                        }
                    },
                    ys: {
                        validators: {
                            digits: {
                                message: '页数只能包含数字。'
                            },
                            stringLength: {
                                max: 4,
                                message: '页数字段长度不能超过4'
                            }
                        }
                    },zzym: {
                        validators: {
                            digits: {
                                message: '终止页码只能包含数字。'
                            },
                            stringLength: {
                                max: 4,
                                message: '终止页码字段长度不能超过4'
                            }
                        }
                    },qsym: {
                        validators: {
                            digits: {
                                message: '起始页码只能包含数字。'
                            },
                            stringLength: {
                                max: 4,
                                message: '起始页码字段长度不能超过4'
                            }
                        }
                    },fs: {
                        validators: {
                            digits: {
                                message: '份数只能包含数字。'
                            },
                            stringLength: {
                                max: 11,
                                message: '份数字段长度不能超过11'
                            }
                        }
                    },
                    clmc: {
                        validators: {
                            notEmpty: {
                                message: '材料名称不能为空'
                            },
                            stringLength: {
                                max: 100,
                                message: '材料名称字段长度不能超过100'
                            }
                        }
                    },
                    otherZh: {
                        validators: {
                            stringLength: {
                                max: 50,
                                message: '案卷号/文号/许可证号字段长度不能超过50'
                            }
                        }
                    },
                    bz: {
                        validators: {
                            stringLength: {
                                max: 255,
                                message: '备注字段长度不能超过255'
                            }
                        }
                    },
                    slsj: {
                        validators: {
                            stringLength: {
                                max: 150,
                                message: '受理时间字段长度不能超过150'
                            }
                        }
                    }
                }
            });
            $('#bjclForm').bootstrapValidator({
                feedbackIcons: {
                    valid: 'glyphicon glyphicon-ok',
                    invalid: 'glyphicon glyphicon-remove',
                    validating: 'glyphicon glyphicon-refresh'
                },
                fields: {
                    wjxh: {
                        validators: {
                            notEmpty: {
                                message: '文件序号不能为空'
                            },
                            stringLength: {
                                min: 3,
                                max: 3,
                                message: '文件序号必须为3位数字'
                            }
                        }
                    },
                    year: {
                        validators: {
                            digits: {
                                message: '年份只能包含数字。'
                            },
                            stringLength: {
                                min: 4,
                                max: 4,
                                message: '年份必须为4位数字'
                            }
                        }
                    },
                    ys: {
                        validators: {
                            digits: {
                                message: '页数只能包含数字。'
                            },
                            stringLength: {
                                max: 4,
                                message: '页数字段长度不能超过4'
                            }
                        }
                    },zzym: {
                        validators: {
                            digits: {
                                message: '终止页码只能包含数字。'
                            },
                            stringLength: {
                                max: 4,
                                message: '终止页码字段长度不能超过4'
                            }
                        }
                    },qsym: {
                        validators: {
                            digits: {
                                message: '起始页码只能包含数字。'
                            },
                            stringLength: {
                                max: 4,
                                message: '起始页码字段长度不能超过4'
                            }
                        }
                    },fs: {
                        validators: {
                            digits: {
                                message: '份数只能包含数字。'
                            },
                            stringLength: {
                                max: 11,
                                message: '份数字段长度不能超过11'
                            }
                        }
                    },
                    clmc: {
                        validators: {
                            notEmpty: {
                                message: '材料名称不能为空'
                            },
                            stringLength: {
                                max: 100,
                                message: '材料名称字段长度不能超过100'
                            }
                        }
                    },
                    otherZh: {
                        validators: {
                            stringLength: {
                                max: 50,
                                message: '案卷号/文号/许可证号字段长度不能超过50'
                            }
                        }
                    },
                    bz: {
                        validators: {
                            stringLength: {
                                max: 255,
                                message: '备注字段长度不能超过255'
                            }
                        }
                    },
                    slsj: {
                        validators: {
                            stringLength: {
                                max: 150,
                                message: '受理时间字段长度不能超过150'
                            }
                        }
                    }
                }
            });
            $('#gdxxForm').bootstrapValidator({
                feedbackIcons: {
                    valid: 'glyphicon glyphicon-ok',
                    invalid: 'glyphicon glyphicon-remove',
                    validating: 'glyphicon glyphicon-refresh'
                },
                fields: {
                    dalxText: {
                        validators: {
                            notEmpty: {
                                message: '档案类型不能为空'
                            }
                        }
                    },
                    dabh: {
                        validators: {
                            notEmpty: {
                                message: '档案编号不能为空'
                            },
                            stringLength: {
                                max: 50,
                                message: '档案编号字段长度不能超过50'
                            }
                        }
                    },
                    yhh: {
                        validators: {
                            stringLength: {
                                max: 50,
                                message: '原盒号字段长度不能超过50'
                            }
                        }
                    },
                    gcxmmc: {
                        validators: {
                            stringLength: {
                                max: 150,
                                message: '工程项目名称字段长度不能超过150'
                            }
                        }
                    },
                    xh: {
                        validators: {
                            stringLength: {
                                max: 50,
                                message: '序号字段长度不能超过50'
                            }
                        }
                    },
                    lb: {
                        validators: {
                            stringLength: {
                                max: 150,
                                message: '类别字段长度不能超过150'
                            }
                        }
                    },
                    year: {
                        validators: {
                            notEmpty: {
                                message: '年份不能为空不能为空'
                            },
                            digits: {
                                message: '年份只能包含数字。'
                            },
                            stringLength: {
                                min: 4,
                                max: 4,
                                message: '年份必须为4位数字'
                            }
                        }
                    },
                    xmmc: {
                        validators: {
                            notEmpty: {
                                message: '项目名称不能为空'
                            },
                            stringLength: {
                                max: 100,
                                message: '项目名称字段长度不能超过100'
                            }
                        }
                    },
                    jsdw: {
                        validators: {
                            stringLength: {
                                max: 50,
                                message: '建设单位字段长度不能超过50'
                            }
                        }

                    },
                    jswz: {
                        validators: {
                            stringLength: {
                                min:0,
                                max: 50,
                                message: '建设位置字段长度不能超过50'
                            }
                        }

                    },
                    dtslbh: {
                        validators: {
                            stringLength: {
                                max: 50,
                                message: '大厅受理编号字段长度不能超过50'
                            }
                        }

                    },
                    daccwz: {
                        validators: {
                            stringLength: {
                                max: 50,
                                message: '档案存储位置字段长度不能超过50'
                            }
                        }

                    },
                    dtslbh: {
                        validators: {
                            stringLength: {
                                max: 50,
                                message: '大厅受理编号字段长度不能超过50'
                            }
                        }
                    },
                    typeName: {
                        validators: {
                            stringLength: {
                                max: 40,
                                message: '类型名字字段长度不能超过40'
                            }
                        }
                    },
                    bz: {
                        validators: {
                            stringLength: {
                                max: 150,
                                message: '备注字段长度不能超过150'
                            }
                        }
                    },
                    qt: {
                        validators: {
                            stringLength: {
                                max: 150,
                                message: '其它字段长度不能超过150'
                            }
                        }
                    },
                    xmfatgsj: {
                        validators: {
                            stringLength: {
                                max: 20,
                                message: '项目通过时间字段长度不能超过20'
                            }
                        }
                    },
                    ys: {
                        validators: {
                            stringLength: {
                                max: 4,
                                message: '页数字段长度不能超过4'
                            }
                        }
                    },
                    clj: {
                        validators: {
                            stringLength: {
                                max: 150,
                                message: '超链接字段长度不能超过150'
                            }
                        }

                    },
                    jsxmxzyjssj: {
                        validators: {
                            stringLength: {
                                max: 20,
                                message: '建设项目选址意见书时间字段长度不能超过20'
                            }
                        }
                    },
                    zly: {
                        validators: {
                            stringLength: {
                                max: 150,
                                message: '著录员字段长度不能超过150'
                            }
                        }
                    },
                    xzxmmc: {
                        validators: {
                            stringLength: {
                                max: 150,
                                message: '选址项目名称字段长度不能超过150'
                            }
                        }
                    },
                    xzydmj: {
                        validators: {
                            stringLength: {
                                max: 150,
                                message: '选址用地面积字段长度不能超过150'
                            }
                        }

                    },
                    jsydghxkzsj: {
                        validators: {
                            stringLength: {
                                max: 20,
                                message: '建设用地规划许可证时间字段长度不能超过150'
                            }
                        }
                    },
                    ghxmmc: {
                        validators: {
                            stringLength: {
                                max: 150,
                                message: '规划项目名称字段长度不能超过150'
                            }
                        }
                    },
                    ghydmj: {
                        validators: {
                            stringLength: {
                                max: 150,
                                message: '规划用地面积字段长度不能超过150'
                            }
                        }
                    },
                    jsgcjgghyshgsj: {
                        validators: {
                            stringLength: {
                                max: 20,
                                message: '建设工程竣工规划验收合格证时间字段长度不能超过20'
                            }
                        }
                    },
                    gcjgxmmc: {
                        validators: {
                            stringLength: {
                                max: 150,
                                message: '工程竣工项目名称字段长度不能超过150'
                            }
                        }
                    },
                    gcjgjsgm: {
                        validators: {
                            stringLength: {
                                max: 150,
                                message: '工程竣工建设规模字段长度不能超过150'
                            }
                        }

                    },
                    jsgcsgxkzsj: {
                        validators: {
                            stringLength: {
                                max: 20,
                                message: '建设工程施工许可证时间字段长度不能超过20'
                            }
                        }
                    },
                    jsgcghxkzsj: {
                        validators: {
                            stringLength: {
                                max: 20,
                                message: '建设工程规划许可证时间字段长度不能超过20'
                            }
                        }
                    },
                    jsgcsgxkzbh: {
                        validators: {
                            stringLength: {
                                max: 150,
                                message: '建设工程施工许可证编号字段长度不能超过150'
                            }
                        }
                    },
                    sggcmc: {
                        validators: {
                            stringLength: {
                                max: 150,
                                message: '施工工程名称字段长度不能超过150'
                            }
                        }
                    },
                    sgjsgm: {
                        validators: {
                            stringLength: {
                                max: 150,
                                message: '施工建设规模字段长度不能超过150'
                            }
                        }
                    },
                    zlsj: {
                        validators: {
                            stringLength: {
                                max: 20,
                                message: '著录时间字段长度不能超过20'
                            }
                        }
                    },
                    gcjsgm: {
                        validators: {
                            stringLength: {
                                max: 150,
                                message: '著录时间字段长度不能超过150'
                            }
                        }
                    },
                    // ajbh: {
                    //     validators: {
                    //         notEmpty: {
                    //             message: '案卷编号不能为空'
                    //         }
                    //     }
                    // },
                    // year: {
                    //     validators: {
                    //         notEmpty: {
                    //             message: '年份不能为空'
                    //         }
                    //     }
                    // },xkzh: {
                    //     validators: {
                    //         notEmpty: {
                    //             message: '许可证号不能为空'
                    //         }
                    //     }
                    // },ajtm: {
                    //     validators: {
                    //         notEmpty: {
                    //             message: '案卷题名不能为空'
                    //         }
                    //     }
                    // },jsdw: {
                    //     validators: {
                    //         notEmpty: {
                    //             message: '建设单位不能为空'
                    //         }
                    //     }
                    // },jsdd: {
                    //     validators: {
                    //         notEmpty: {
                    //             message: '建设地点不能为空'
                    //         }
                    //     }
                    // },mj: {
                    //     validators: {
                    //         notEmpty: {
                    //             message: '密级不能为空'
                    //         }
                    //     }
                    // },bgqx: {
                    //     validators: {
                    //         notEmpty: {
                    //             message: '保管期限不能为空'
                    //         }
                    //     }
                    // },daccwz: {
                    //     validators: {
                    //         notEmpty: {
                    //             message: '档案存储位置不能为空'
                    //         }
                    //     }
                    // },ljdw: {
                    //     validators: {
                    //         notEmpty: {
                    //             message: '立卷单位不能为空'
                    //         }
                    //     }
                    // },zbh: {
                    //     validators: {
                    //         notEmpty: {
                    //             message: '自编号不能为空'
                    //         }
                    //     }
                    // },qzh: {
                    //     validators: {
                    //         notEmpty: {
                    //             message: '全宗号不能为空'
                    //         }
                    //     }
                    //  },
                    // gdsj: {
                    //     validators: {
                    //         notEmpty: {
                    //             message: '归档时间不能为空'
                    //         }
                    //     }
                    // }
                }
            });
            $('#wsxxForm').bootstrapValidator({
                feedbackIcons: {
                    excluded:[":disabled"],
                    valid: 'glyphicon glyphicon-ok',
                    invalid: 'glyphicon glyphicon-remove',
                    validating: 'glyphicon glyphicon-refresh'
                },
                fields: {
                    dalxText: {
                        validators: {
                            notEmpty: {
                                message: '档案类型不能为空'
                            }
                        }
                    },
                    nf: {
                        validators: {
                            notEmpty: {
                                message: '年份不能为空不能为空'
                            },
                            digits: {
                                message: '年份只能包含数字。'
                            },
                            stringLength: {
                                min: 4,
                                max: 4,
                                message: '年份必须为4位数字'
                            }
                        }
                    },
                    yh: {
                        validators: {
                            digits: {
                                message: '页号只能包含数字。'
                            },
                            stringLength: {
                                max: 4,
                                message: '页号字段长度不能超过4位'
                            }
                        }
                    },
                    ys: {
                        validators: {
                            digits: {
                                message: '页数只能包含数字。'
                            },
                            stringLength: {
                                max: 4,
                                message: '页数字段长度不能超过4位'
                            }
                        }
                    },
                    dabh: {
                        validators: {
                            notEmpty: {
                                message: '档案编号不能为空'
                            },
                            stringLength: {
                                max: 150,
                                message: '档案编号字段长度不能超过150位'
                            }
                        }
                    },
                    zhh: {
                        validators: {
                            stringLength: {
                                max: 100,
                                message: '总盒号字段长度不能超过100位'
                            }
                        }
                    },
                    dwmc: {
                        validators: {
                            stringLength: {
                                max: 255,
                                message: '单位名称字段长度不能超过100位'
                            }
                        }
                    },
                    sj: {
                        validators: {
                            stringLength: {
                                max: 20,
                                message: '时间字段长度不能超过20位'
                            }
                        }
                    },
                    // wjbh: {
                    //     validators: {
                    //         notEmpty: {
                    //             message: '文件编号不能为空'
                    //         }
                    //     }
                    // },
                    wjmc: {
                        validators: {
                            notEmpty: {
                                message: '文件名称不能为空'
                            },
                            stringLength: {
                                max: 255,
                                message: '文件名称字段长度不能超过255位'
                            }
                        }
                    },
                    bz: {
                        validators: {
                            stringLength: {
                                max: 200,
                                message: '备注字段长度不能超过200位'
                            }
                        }
                    },
                    wh: {
                        validators: {
                            stringLength: {
                                max: 200,
                                message: '文号字段长度不能超过200位'
                            }
                        }
                    },
                    // wjtm: {
                    //     validators: {
                    //         notEmpty: {
                    //             message: '文件提名不能为空'
                    //         }
                    //     }
                    // },
                    // bgqx: {
                    //     validators: {
                    //         notEmpty: {
                    //             message: '保管期限不能为空'
                    //         }
                    //     }
                    // },
                    // mj: {
                    //     validators: {
                    //         notEmpty: {
                    //             message: '密级不能为空'
                    //         }
                    //     }
                    // },
                    // zrz: {
                    //     validators: {
                    //         notEmpty: {
                    //             message: '责任者不能为空'
                    //         }
                    //     }
                    // },
                    // wjbh: {
                    //     validators: {
                    //         notEmpty: {
                    //             message: '文件编号不能为空'
                    //         }
                    //     }
                    // },
                    // ajh: {
                    //     validators: {
                    //         notEmpty: {
                    //             message: '案卷号不能为空'
                    //         }
                    //     }
                    // },
                    // hh: {
                    //     validators: {
                    //         notEmpty: {
                    //             message: '盒号不能为空'
                    //         }
                    //     }
                    // },
                    // mlh: {
                    //     validators: {
                    //         notEmpty: {
                    //             message: '目录号不能为空'
                    //         }
                    //     }
                    // },
                    // sxh: {
                    //     validators: {
                    //         notEmpty: {
                    //             message: '顺序号不能为空'
                    //         }
                    //     }
                    // },
                    // qzh: {
                    //     validators: {
                    //         notEmpty: {
                    //             message: '全宗号不能为空'
                    //         }
                    //     }
                    // },
                    // jh: {
                    //     validators: {
                    //         notEmpty: {
                    //             message: '件号不能为空'
                    //         }
                    //     }
                    // },
                    // zhh: {
                    //     validators: {
                    //         notEmpty: {
                    //             message: '总盒号不能为空'
                    //         }
                    //     }
                    // },
                    // jg: {
                    //     validators: {
                    //         notEmpty: {
                    //             message: '机构不能为空'
                    //         }
                    //     }
                    // },
                    // gkjb: {
                    //     validators: {
                    //         notEmpty: {
                    //             message: '公开级别不能为空'
                    //         }
                    //     }
                    // },
                    // dagdm: {
                    //     validators: {
                    //         notEmpty: {
                    //             message: '档案馆编码不能为空'
                    //         }
                    //     }
                    // },
                }
            });
        }
    });
</script>

</body>
</html>
